From 6a2a4c0fe62d0cdbecc8dd0b01ea458c6efa2de7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim-Philipp=20M=C3=BCller?= Date: Tue, 17 Oct 2006 15:16:47 +0000 Subject: 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. --- gst/nuvdemux/gstnuvdemux.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'gst') 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, -- cgit v1.2.1