Commit 880b9a20 authored by Sebastian Dröge's avatar Sebastian Dröge

tagdemux: Add stream-id to stream-start event

parent e25a861e
......@@ -344,13 +344,17 @@ gst_tag_demux_set_src_caps (GstTagDemux * tagdemux, GstCaps * new_caps)
GstCaps *old_caps = tagdemux->priv->src_caps;
if (old_caps == NULL || !gst_caps_is_equal (new_caps, old_caps)) {
gchar *stream_id = gst_pad_create_stream_id (tagdemux->priv->srcpad,
gst_caps_replace (&tagdemux->priv->src_caps, new_caps);
GST_DEBUG_OBJECT (tagdemux, "Changing src pad caps to %" GST_PTR_FORMAT,
gst_pad_push_event (tagdemux->priv->srcpad, gst_event_new_stream_start ());
gst_pad_push_event (tagdemux->priv->srcpad,
gst_event_new_stream_start (stream_id));
g_free (stream_id);
gst_pad_set_caps (tagdemux->priv->srcpad, tagdemux->priv->src_caps);
} else {
/* Caps never changed */
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment