Commit 0b18cb8f authored by Wim Taymans's avatar Wim Taymans
Browse files

check/elements/: Fix checks.

Original commit message from CVS:
* check/elements/audioconvert.c: (setup_audioconvert):
* check/elements/audioresample.c: (setup_audioresample):
* check/elements/volume.c: (setup_volume):
Fix checks.
parent 5ea209dd
2005-08-30 Wim Taymans <wim@fluendo.com>
* 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 <thomas at apestaart dot org>
 
* common/gtk-doc-plugins.mak:
......
......@@ -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;
}
......
......@@ -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;
}
......
......@@ -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;
}
......
......@@ -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;
}
......
......@@ -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;
}
......
......@@ -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;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment