From 55caa99ccd905b78611112ceffd3b6c0cb430d3f Mon Sep 17 00:00:00 2001 From: Thiago Santos Date: Tue, 14 May 2013 17:30:07 -0300 Subject: [PATCH] qtdemux: Do not expect EOS after a segment event if upstream is mss In case qtdemux is handling a mss stream, do not mark the stream to wait for EOS after a segment. Even if it seems to be the last one according to the current streams information. MSS handling is different here because there is another demuxer driving the pipeline --- gst/isomp4/qtdemux.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/gst/isomp4/qtdemux.c b/gst/isomp4/qtdemux.c index 397db0e071..ed6914ffaa 100644 --- a/gst/isomp4/qtdemux.c +++ b/gst/isomp4/qtdemux.c @@ -1919,7 +1919,11 @@ gst_qtdemux_handle_sink_event (GstPad * sinkpad, GstObject * parent, demux->neededbytes = demux->todrop + stream->samples[idx].size; } else { /* set up for EOS */ - demux->neededbytes = -1; + if (demux->mss_mode) { + demux->neededbytes = 16; + } else { + demux->neededbytes = -1; + } demux->todrop = 0; } exit: