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
This commit is contained in:
Thiago Santos 2013-05-14 17:30:07 -03:00
parent 5517e352ab
commit 55caa99ccd

View file

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