From 9de9d7e4d4648c8289405156431d03114cb4d05f Mon Sep 17 00:00:00 2001 From: Mark Nauwelaerts Date: Tue, 30 Aug 2011 13:28:21 +0200 Subject: [PATCH] qtdemux: push mode; fix buffered streaming That is, in case where no seek is peformed to moov, but preceding limited mdat is buffered. --- gst/isomp4/qtdemux.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gst/isomp4/qtdemux.c b/gst/isomp4/qtdemux.c index 99564e828e..1caccc0715 100644 --- a/gst/isomp4/qtdemux.c +++ b/gst/isomp4/qtdemux.c @@ -4153,6 +4153,7 @@ gst_qtdemux_chain (GstPad * sinkpad, GstBuffer * inbuf) * put preceding buffered data ahead of current moov data. * This should also handle evil mdat, moov, mdat cases and alike */ gst_adapter_clear (demux->adapter); + gst_adapter_push (demux->adapter, demux->mdatbuffer); demux->mdatbuffer = NULL; demux->offset = demux->mdatoffset; demux->neededbytes = next_entry_size (demux);