Flush the packetizers!

This commit is contained in:
Moritz Bunkus 2005-08-06 11:36:45 +00:00
parent ee0ffc1b87
commit 2f9f2801e7

View File

@ -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;