summaryrefslogtreecommitdiffstats
path: root/gst
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim@centricular.net>2006-10-17 15:16:47 +0000
committerTim-Philipp Müller <tim@centricular.net>2006-10-17 15:16:47 +0000
commit6a2a4c0fe62d0cdbecc8dd0b01ea458c6efa2de7 (patch)
tree801347f24675fc742452f7470e04cfc0bb704339 /gst
parent43940d6f0f7c696217ec4810f2d28640446c7346 (diff)
downloadgst-plugins-bad-6a2a4c0fe62d0cdbecc8dd0b01ea458c6efa2de7.tar.gz
gst-plugins-bad-6a2a4c0fe62d0cdbecc8dd0b01ea458c6efa2de7.tar.bz2
gst-plugins-bad-6a2a4c0fe62d0cdbecc8dd0b01ea458c6efa2de7.zip
Activate pads before adding them to running element.
Original commit message from CVS: * ext/wavpack/gstwavpackenc.c: (gst_wavpack_enc_set_wp_config): * ext/wavpack/gstwavpackparse.c: (gst_wavpack_parse_create_src_pad): * gst/nuvdemux/gstnuvdemux.c: (gst_nuv_demux_create_pads): * tests/check/elements/wavpackparse.c: (wavpackparse_found_pad): Activate pads before adding them to running element.
Diffstat (limited to 'gst')
-rw-r--r--gst/nuvdemux/gstnuvdemux.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gst/nuvdemux/gstnuvdemux.c b/gst/nuvdemux/gstnuvdemux.c
index 68099070..eb3aba56 100644
--- a/gst/nuvdemux/gstnuvdemux.c
+++ b/gst/nuvdemux/gstnuvdemux.c
@@ -424,6 +424,7 @@ gst_nuv_demux_create_pads (GstNuvDemux * nuv)
gst_pad_set_event_function (nuv->src_video_pad,
gst_nuv_demux_handle_src_event);
+ gst_pad_set_active (nuv->src_video_pad, TRUE);
gst_element_add_pad (GST_ELEMENT (nuv), nuv->src_video_pad);
gst_caps_unref (video_caps);
}
@@ -443,6 +444,7 @@ gst_nuv_demux_create_pads (GstNuvDemux * nuv)
gst_pad_use_fixed_caps (nuv->src_audio_pad);
gst_pad_set_active (nuv->src_audio_pad, TRUE);
gst_pad_set_caps (nuv->src_audio_pad, audio_caps);
+ gst_pad_set_active (nuv->src_audio_pad, TRUE);
gst_element_add_pad (GST_ELEMENT (nuv), nuv->src_audio_pad);
gst_pad_set_event_function (nuv->src_audio_pad,