diff options
author | Sebastian Dröge <sebastian@centricular.com> | 2017-01-24 23:10:19 +0200 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2017-01-24 23:11:08 +0200 |
commit | 046aad8c1b5339420bde98e1c8590776f02d371e (patch) | |
tree | a48e50ae096bd3e598b17649057b34d53e98958e /gst | |
parent | 538c4456aa27b1b277accb132379f7ba722f793c (diff) | |
download | gstreamer-plugins-bad-046aad8c1b5339420bde98e1c8590776f02d371e.tar.gz |
tsdemux: Set caps/tags in the GstStream object before pushing the stream-start event
Otherwise downstream will get a more or less empty GstStream although we
already know a lot about it at this point.
Diffstat (limited to 'gst')
-rw-r--r-- | gst/mpegtsdemux/tsdemux.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gst/mpegtsdemux/tsdemux.c b/gst/mpegtsdemux/tsdemux.c index de4a0e9c2..20357a87f 100644 --- a/gst/mpegtsdemux/tsdemux.c +++ b/gst/mpegtsdemux/tsdemux.c @@ -1618,15 +1618,15 @@ done: GST_STREAM_FLAG_SPARSE); } stream->sparse = sparse; - - gst_pad_push_event (pad, event); - gst_pad_set_caps (pad, caps); gst_stream_set_caps (bstream->stream_object, caps); if (!stream->taglist) stream->taglist = gst_tag_list_new_empty (); gst_pb_utils_add_codec_description_to_tag_list (stream->taglist, NULL, caps); gst_stream_set_tags (bstream->stream_object, stream->taglist); + + gst_pad_push_event (pad, event); + gst_pad_set_caps (pad, caps); gst_pad_set_query_function (pad, gst_ts_demux_srcpad_query); gst_pad_set_event_function (pad, gst_ts_demux_srcpad_event); } |