mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
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:
parent
0cecb44813
commit
ba114b6b22
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue