summaryrefslogtreecommitdiff
path: root/gst/hls
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian.droege@collabora.co.uk>2012-08-06 13:59:27 +0200
committerSebastian Dröge <sebastian.droege@collabora.co.uk>2012-08-06 14:05:08 +0200
commitbdc46898de7578160e6664d8e589102f51656e21 (patch)
treee31583b3d841f1d1fa78176c597196b03af93984 /gst/hls
parent94337d05a503aafc403fdaecff2192e11249c94f (diff)
downloadgstreamer-plugins-bad-bdc46898de7578160e6664d8e589102f51656e21.tar.gz
gst: Add stream-id to stream-start events
Diffstat (limited to 'gst/hls')
-rw-r--r--gst/hls/gsthlsdemux.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/gst/hls/gsthlsdemux.c b/gst/hls/gsthlsdemux.c
index f5efc9208..ba9c4d9da 100644
--- a/gst/hls/gsthlsdemux.c
+++ b/gst/hls/gsthlsdemux.c
@@ -602,6 +602,7 @@ static void
switch_pads (GstHLSDemux * demux, GstCaps * newcaps)
{
GstPad *oldpad = demux->srcpad;
+ gchar *stream_id;
GST_DEBUG ("Switching pads (oldpad:%p) with caps: %" GST_PTR_FORMAT, oldpad,
newcaps);
@@ -614,8 +615,14 @@ switch_pads (GstHLSDemux * demux, GstCaps * newcaps)
GST_DEBUG_FUNCPTR (gst_hls_demux_src_query));
gst_pad_set_element_private (demux->srcpad, demux);
gst_pad_set_active (demux->srcpad, TRUE);
- gst_pad_push_event (demux->srcpad, gst_event_new_stream_start ());
+
+ stream_id =
+ gst_pad_create_stream_id (demux->srcpad, GST_ELEMENT_CAST (demux), NULL);
+ gst_pad_push_event (demux->srcpad, gst_event_new_stream_start (stream_id));
+ g_free (stream_id);
+
gst_pad_set_caps (demux->srcpad, newcaps);
+
gst_element_add_pad (GST_ELEMENT (demux), demux->srcpad);
gst_element_no_more_pads (GST_ELEMENT (demux));