diff --git a/ChangeLog b/ChangeLog index b9a69c8230..ed7c29f20f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2005-08-30 Wim Taymans + + * check/elements/audioconvert.c: (setup_audioconvert): + * check/elements/audioresample.c: (setup_audioresample): + * check/elements/volume.c: (setup_volume): + Fix checks. + 2005-08-30 Thomas Vander Stichele * common/gtk-doc-plugins.mak: diff --git a/check/elements/audioconvert.c b/check/elements/audioconvert.c index 37e8a43fac..ca2a5304f8 100644 --- a/check/elements/audioconvert.c +++ b/check/elements/audioconvert.c @@ -98,6 +98,9 @@ setup_audioconvert (GstCaps * outcaps) fail_unless (gst_caps_is_fixed (outcaps)); gst_caps_unref (outcaps); + gst_pad_set_active (mysrcpad, TRUE); + gst_pad_set_active (mysinkpad, TRUE); + return audioconvert; } diff --git a/check/elements/audioresample.c b/check/elements/audioresample.c index d39eb9b179..dd87b614f0 100644 --- a/check/elements/audioresample.c +++ b/check/elements/audioresample.c @@ -75,6 +75,7 @@ setup_audioresample (int channels, int inrate, int outrate) gst_pad_set_caps (pad, caps); gst_object_unref (GST_OBJECT (pad)); gst_caps_unref (caps); + gst_pad_set_active (mysrcpad, TRUE); caps = gst_caps_from_string (RESAMPLE_CAPS_TEMPLATE_STRING); structure = gst_caps_get_structure (caps, 0); @@ -90,6 +91,7 @@ setup_audioresample (int channels, int inrate, int outrate) gst_pad_set_caps (pad, caps); gst_object_unref (GST_OBJECT (pad)); gst_caps_unref (caps); + gst_pad_set_active (mysinkpad, TRUE); return audioresample; } diff --git a/check/elements/volume.c b/check/elements/volume.c index a07715cbba..047338de5e 100644 --- a/check/elements/volume.c +++ b/check/elements/volume.c @@ -81,6 +81,9 @@ setup_volume () volume = gst_check_setup_element ("volume"); mysrcpad = gst_check_setup_src_pad (volume, &srctemplate, NULL); mysinkpad = gst_check_setup_sink_pad (volume, &sinktemplate, NULL); + gst_pad_set_active (mysrcpad, TRUE); + gst_pad_set_active (mysinkpad, TRUE); + return volume; } diff --git a/tests/check/elements/audioconvert.c b/tests/check/elements/audioconvert.c index 37e8a43fac..ca2a5304f8 100644 --- a/tests/check/elements/audioconvert.c +++ b/tests/check/elements/audioconvert.c @@ -98,6 +98,9 @@ setup_audioconvert (GstCaps * outcaps) fail_unless (gst_caps_is_fixed (outcaps)); gst_caps_unref (outcaps); + gst_pad_set_active (mysrcpad, TRUE); + gst_pad_set_active (mysinkpad, TRUE); + return audioconvert; } diff --git a/tests/check/elements/audioresample.c b/tests/check/elements/audioresample.c index d39eb9b179..dd87b614f0 100644 --- a/tests/check/elements/audioresample.c +++ b/tests/check/elements/audioresample.c @@ -75,6 +75,7 @@ setup_audioresample (int channels, int inrate, int outrate) gst_pad_set_caps (pad, caps); gst_object_unref (GST_OBJECT (pad)); gst_caps_unref (caps); + gst_pad_set_active (mysrcpad, TRUE); caps = gst_caps_from_string (RESAMPLE_CAPS_TEMPLATE_STRING); structure = gst_caps_get_structure (caps, 0); @@ -90,6 +91,7 @@ setup_audioresample (int channels, int inrate, int outrate) gst_pad_set_caps (pad, caps); gst_object_unref (GST_OBJECT (pad)); gst_caps_unref (caps); + gst_pad_set_active (mysinkpad, TRUE); return audioresample; } diff --git a/tests/check/elements/volume.c b/tests/check/elements/volume.c index a07715cbba..047338de5e 100644 --- a/tests/check/elements/volume.c +++ b/tests/check/elements/volume.c @@ -81,6 +81,9 @@ setup_volume () volume = gst_check_setup_element ("volume"); mysrcpad = gst_check_setup_src_pad (volume, &srctemplate, NULL); mysinkpad = gst_check_setup_sink_pad (volume, &sinktemplate, NULL); + gst_pad_set_active (mysrcpad, TRUE); + gst_pad_set_active (mysinkpad, TRUE); + return volume; }