From 2f9f2801e7a7e7be93c452e83f0d9f7a0942874a Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Sat, 6 Aug 2005 11:36:45 +0000 Subject: [PATCH] Flush the packetizers! --- src/input/r_matroska.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/input/r_matroska.cpp b/src/input/r_matroska.cpp index 963efa800..784cdb952 100644 --- a/src/input/r_matroska.cpp +++ b/src/input/r_matroska.cpp @@ -1769,8 +1769,10 @@ kax_reader_c::read(generic_packetizer_c *, l0 = segment; - if (saved_l1 == NULL) // We're done. + if (saved_l1 == NULL) { // We're done. + flush_packetizers(); return FILE_STATUS_DONE; + } if (!force && (get_queued_bytes() > 20 * 1024 * 1024)) return FILE_STATUS_HOLDING;