From 2a0945887eedf578e944028bd1e1a35777b90e15 Mon Sep 17 00:00:00 2001 From: Edward Hervey Date: Fri, 13 Jul 2012 13:59:16 +0200 Subject: [PATCH] demuxers: Push STREAM_START when needed --- ext/sidplay/gstsiddec.cc | 1 + gst/asfdemux/gstasfdemux.c | 1 + gst/realmedia/rademux.c | 1 + gst/realmedia/rmdemux.c | 1 + 4 files changed, 4 insertions(+) diff --git a/ext/sidplay/gstsiddec.cc b/ext/sidplay/gstsiddec.cc index 8233ac0..62584e1 100644 --- a/ext/sidplay/gstsiddec.cc +++ b/ext/sidplay/gstsiddec.cc @@ -333,6 +333,7 @@ siddec_negotiate (GstSidDec * siddec) "layout", G_TYPE_STRING, "interleaved", "rate", G_TYPE_INT, siddec->config->frequency, "channels", G_TYPE_INT, siddec->config->channels, NULL); + gst_pad_push_event (siddec->srcpad, gst_event_new_stream_start ()); gst_pad_set_caps (siddec->srcpad, caps); gst_caps_unref (caps); diff --git a/gst/asfdemux/gstasfdemux.c b/gst/asfdemux/gstasfdemux.c index 01c4c4b..bad84db 100644 --- a/gst/asfdemux/gstasfdemux.c +++ b/gst/asfdemux/gstasfdemux.c @@ -2368,6 +2368,7 @@ gst_asf_demux_activate_stream (GstASFDemux * demux, AsfStream * stream) gst_pad_set_active (stream->pad, TRUE); gst_pad_set_caps (stream->pad, stream->caps); gst_element_add_pad (GST_ELEMENT_CAST (demux), stream->pad); + gst_pad_push_event (stream->pad, gst_event_new_stream_start ()); stream->active = TRUE; } } diff --git a/gst/realmedia/rademux.c b/gst/realmedia/rademux.c index 113774f..e9258a0 100644 --- a/gst/realmedia/rademux.c +++ b/gst/realmedia/rademux.c @@ -437,6 +437,7 @@ gst_real_audio_demux_parse_header (GstRealAudioDemux * demux) GST_INFO_OBJECT (demux, "Adding source pad, caps %" GST_PTR_FORMAT, caps); demux->srcpad = gst_pad_new_from_static_template (&src_template, "src"); gst_pad_use_fixed_caps (demux->srcpad); + gst_pad_push_event (demux->srcpad, gst_event_new_stream_start ()); gst_pad_set_caps (demux->srcpad, caps); codec_name = gst_pb_utils_get_codec_description (caps); gst_caps_unref (caps); diff --git a/gst/realmedia/rmdemux.c b/gst/realmedia/rmdemux.c index 240a85d..28481a4 100644 --- a/gst/realmedia/rmdemux.c +++ b/gst/realmedia/rmdemux.c @@ -1489,6 +1489,7 @@ gst_rmdemux_add_stream (GstRMDemux * rmdemux, GstRMDemuxStream * stream) ", stream_id=%d", GST_PAD_NAME (stream->pad), stream_caps, stream->id); gst_pad_set_active (stream->pad, TRUE); gst_element_add_pad (GST_ELEMENT_CAST (rmdemux), stream->pad); + gst_pad_push_event (stream->pad, gst_event_new_stream_start ()); codec_name = gst_pb_utils_get_codec_description (stream_caps); -- 2.7.4