From: Thiago Santos Date: Sat, 18 May 2013 00:23:55 +0000 (-0300) Subject: dashdemux: send stream start event X-Git-Tag: 1.19.3~507^2~13474 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d434f362457dfd30c8306a8e2a01f47e88bca50e;p=platform%2Fupstream%2Fgstreamer.git dashdemux: send stream start event Removes warnings about strict sticky events ordering --- diff --git a/ext/dash/gstdashdemux.c b/ext/dash/gstdashdemux.c index 5d88d56..288e9ce 100644 --- a/ext/dash/gstdashdemux.c +++ b/ext/dash/gstdashdemux.c @@ -686,6 +686,7 @@ gst_dash_demux_setup_all_streams (GstDashDemux * demux) GstDashDemuxStream *stream; GstActiveStream *active_stream; GstCaps *caps; + gchar *stream_id; active_stream = gst_mpdparser_get_active_stream_by_index (demux->client, i); if (active_stream == NULL) @@ -708,6 +709,13 @@ gst_dash_demux_setup_all_streams (GstDashDemux * demux) GST_LOG_OBJECT (demux, "Creating stream %d %" GST_PTR_FORMAT, i, caps); streams = g_slist_prepend (streams, stream); stream->pad = gst_dash_demux_create_pad (demux); + + stream_id = + gst_pad_create_stream_id_printf (stream->pad, + GST_ELEMENT_CAST (demux), "%d", i); + gst_pad_push_event (stream->pad, gst_event_new_stream_start (stream_id)); + g_free (stream_id); + gst_dash_demux_stream_push_event (stream, gst_event_new_caps (caps)); } streams = g_slist_reverse (streams);