tsdemux: Ensure that all pending data is pushed even if the stream was not activated before

gst_ts_demux_push_pending_data() will check if it now can activate the
stream and add the pad, we don't have to check that ourselves.

Fixes playback of very short MPEG TS files.
This commit is contained in:
Sebastian Dröge 2014-03-27 19:42:52 +01:00
parent 0cecb44813
commit ba114b6b22

View file

@ -669,7 +669,7 @@ push_event (MpegTSBase * base, GstEvent * event)
TSDemuxStream *stream = (TSDemuxStream *) tmp->data;
if (stream->pad) {
/* If we are pushing out EOS, flush out pending data first */
if (GST_EVENT_TYPE (event) == GST_EVENT_EOS && stream->active &&
if (GST_EVENT_TYPE (event) == GST_EVENT_EOS &&
gst_pad_is_active (stream->pad))
gst_ts_demux_push_pending_data (demux, stream);