summaryrefslogtreecommitdiff
path: root/gst/mpegdemux
diff options
context:
space:
mode:
authorWim Taymans <wim.taymans@collabora.co.uk>2013-03-30 10:25:24 +0100
committerWim Taymans <wim.taymans@collabora.co.uk>2013-03-30 11:15:48 +0100
commitd7bcf7206f081c5503489233733fa8d3b89f37e7 (patch)
tree09521701a9ebb91f202b17f0d09f9ca1bd93bb0b /gst/mpegdemux
parentb6719fe0e3e1f8339dd791f8453b171170dfa106 (diff)
downloadgstreamer-plugins-bad-d7bcf7206f081c5503489233733fa8d3b89f37e7.tar.gz
mpegpsdemux: push stream start event
Diffstat (limited to 'gst/mpegdemux')
-rw-r--r--gst/mpegdemux/gstmpegdemux.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/gst/mpegdemux/gstmpegdemux.c b/gst/mpegdemux/gstmpegdemux.c
index cd8f5c73d..b2734b043 100644
--- a/gst/mpegdemux/gstmpegdemux.c
+++ b/gst/mpegdemux/gstmpegdemux.c
@@ -349,6 +349,7 @@ gst_flups_demux_create_stream (GstFluPSDemux * demux, gint id, gint stream_type)
GstFluPSDemuxClass *klass = GST_FLUPS_DEMUX_GET_CLASS (demux);
GstCaps *caps;
GstClockTime threshold = SEGMENT_THRESHOLD;
+ gchar *stream_id;
name = NULL;
template = NULL;
@@ -468,6 +469,12 @@ gst_flups_demux_create_stream (GstFluPSDemux * demux, gint id, gint stream_type)
/* needed for set_caps to work */
gst_pad_set_active (stream->pad, TRUE);
+ stream_id =
+ gst_pad_create_stream_id_printf (stream->pad, GST_ELEMENT_CAST (demux),
+ "%02x", id);
+ gst_pad_push_event (stream->pad, gst_event_new_stream_start (stream_id));
+ g_free (stream_id);
+
gst_pad_set_caps (stream->pad, caps);
gst_caps_unref (caps);
GST_DEBUG_OBJECT (demux, "create pad %s, caps %" GST_PTR_FORMAT, name, caps);