summaryrefslogtreecommitdiff
path: root/gst
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim.muller@collabora.co.uk>2012-07-18 16:49:47 +0100
committerTim-Philipp Müller <tim.muller@collabora.co.uk>2012-07-18 16:49:47 +0100
commitb78454c868200137fa94117f68994270ad926054 (patch)
tree8c2946ddb93b0d0d1f3b61a13f292b2570419867 /gst
parent1c07373c2bfccef2dd289177e52ceb97003b6d43 (diff)
rademux: set/send caps on pad after activating it
Diffstat (limited to 'gst')
-rw-r--r--gst/realmedia/rademux.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/gst/realmedia/rademux.c b/gst/realmedia/rademux.c
index e9258a0d..cd28b8b1 100644
--- a/gst/realmedia/rademux.c
+++ b/gst/realmedia/rademux.c
@@ -436,16 +436,16 @@ 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);
gst_pad_set_event_function (demux->srcpad,
GST_DEBUG_FUNCPTR (gst_real_audio_demux_src_event));
gst_pad_set_query_function (demux->srcpad,
GST_DEBUG_FUNCPTR (gst_real_audio_demux_src_query));
gst_pad_set_active (demux->srcpad, TRUE);
+ 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);
gst_element_add_pad (GST_ELEMENT (demux), demux->srcpad);
if (demux->byterate_num > 0 && demux->byterate_denom > 0) {