summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian@centricular.com>2017-01-24 23:10:19 +0200
committerSebastian Dröge <sebastian@centricular.com>2017-01-25 14:23:17 +0200
commit81109d566c8950a75829b33b67049fd70e655b12 (patch)
treee11a6408f4be4e5b19696dbeaa5ae4ad518acbb2
parent599022e62c661a1733e64f502bcecf7bc9a236cf (diff)
downloadgstreamer-plugins-bad-81109d566c8950a75829b33b67049fd70e655b12.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.
-rw-r--r--gst/mpegtsdemux/tsdemux.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gst/mpegtsdemux/tsdemux.c b/gst/mpegtsdemux/tsdemux.c
index c701c37f2..abe21a152 100644
--- a/gst/mpegtsdemux/tsdemux.c
+++ b/gst/mpegtsdemux/tsdemux.c
@@ -1621,15 +1621,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);
}