mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-25 17:50:36 +00:00
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.
This commit is contained in:
parent
5ea209dd07
commit
0b18cb8f17
7 changed files with 23 additions and 0 deletions
|
@ -1,3 +1,10 @@
|
||||||
|
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>
|
2005-08-30 Thomas Vander Stichele <thomas at apestaart dot org>
|
||||||
|
|
||||||
* common/gtk-doc-plugins.mak:
|
* common/gtk-doc-plugins.mak:
|
||||||
|
|
|
@ -98,6 +98,9 @@ setup_audioconvert (GstCaps * outcaps)
|
||||||
fail_unless (gst_caps_is_fixed (outcaps));
|
fail_unless (gst_caps_is_fixed (outcaps));
|
||||||
gst_caps_unref (outcaps);
|
gst_caps_unref (outcaps);
|
||||||
|
|
||||||
|
gst_pad_set_active (mysrcpad, TRUE);
|
||||||
|
gst_pad_set_active (mysinkpad, TRUE);
|
||||||
|
|
||||||
return audioconvert;
|
return audioconvert;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -75,6 +75,7 @@ setup_audioresample (int channels, int inrate, int outrate)
|
||||||
gst_pad_set_caps (pad, caps);
|
gst_pad_set_caps (pad, caps);
|
||||||
gst_object_unref (GST_OBJECT (pad));
|
gst_object_unref (GST_OBJECT (pad));
|
||||||
gst_caps_unref (caps);
|
gst_caps_unref (caps);
|
||||||
|
gst_pad_set_active (mysrcpad, TRUE);
|
||||||
|
|
||||||
caps = gst_caps_from_string (RESAMPLE_CAPS_TEMPLATE_STRING);
|
caps = gst_caps_from_string (RESAMPLE_CAPS_TEMPLATE_STRING);
|
||||||
structure = gst_caps_get_structure (caps, 0);
|
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_pad_set_caps (pad, caps);
|
||||||
gst_object_unref (GST_OBJECT (pad));
|
gst_object_unref (GST_OBJECT (pad));
|
||||||
gst_caps_unref (caps);
|
gst_caps_unref (caps);
|
||||||
|
gst_pad_set_active (mysinkpad, TRUE);
|
||||||
|
|
||||||
return audioresample;
|
return audioresample;
|
||||||
}
|
}
|
||||||
|
|
|
@ -81,6 +81,9 @@ setup_volume ()
|
||||||
volume = gst_check_setup_element ("volume");
|
volume = gst_check_setup_element ("volume");
|
||||||
mysrcpad = gst_check_setup_src_pad (volume, &srctemplate, NULL);
|
mysrcpad = gst_check_setup_src_pad (volume, &srctemplate, NULL);
|
||||||
mysinkpad = gst_check_setup_sink_pad (volume, &sinktemplate, NULL);
|
mysinkpad = gst_check_setup_sink_pad (volume, &sinktemplate, NULL);
|
||||||
|
gst_pad_set_active (mysrcpad, TRUE);
|
||||||
|
gst_pad_set_active (mysinkpad, TRUE);
|
||||||
|
|
||||||
return volume;
|
return volume;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -98,6 +98,9 @@ setup_audioconvert (GstCaps * outcaps)
|
||||||
fail_unless (gst_caps_is_fixed (outcaps));
|
fail_unless (gst_caps_is_fixed (outcaps));
|
||||||
gst_caps_unref (outcaps);
|
gst_caps_unref (outcaps);
|
||||||
|
|
||||||
|
gst_pad_set_active (mysrcpad, TRUE);
|
||||||
|
gst_pad_set_active (mysinkpad, TRUE);
|
||||||
|
|
||||||
return audioconvert;
|
return audioconvert;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -75,6 +75,7 @@ setup_audioresample (int channels, int inrate, int outrate)
|
||||||
gst_pad_set_caps (pad, caps);
|
gst_pad_set_caps (pad, caps);
|
||||||
gst_object_unref (GST_OBJECT (pad));
|
gst_object_unref (GST_OBJECT (pad));
|
||||||
gst_caps_unref (caps);
|
gst_caps_unref (caps);
|
||||||
|
gst_pad_set_active (mysrcpad, TRUE);
|
||||||
|
|
||||||
caps = gst_caps_from_string (RESAMPLE_CAPS_TEMPLATE_STRING);
|
caps = gst_caps_from_string (RESAMPLE_CAPS_TEMPLATE_STRING);
|
||||||
structure = gst_caps_get_structure (caps, 0);
|
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_pad_set_caps (pad, caps);
|
||||||
gst_object_unref (GST_OBJECT (pad));
|
gst_object_unref (GST_OBJECT (pad));
|
||||||
gst_caps_unref (caps);
|
gst_caps_unref (caps);
|
||||||
|
gst_pad_set_active (mysinkpad, TRUE);
|
||||||
|
|
||||||
return audioresample;
|
return audioresample;
|
||||||
}
|
}
|
||||||
|
|
|
@ -81,6 +81,9 @@ setup_volume ()
|
||||||
volume = gst_check_setup_element ("volume");
|
volume = gst_check_setup_element ("volume");
|
||||||
mysrcpad = gst_check_setup_src_pad (volume, &srctemplate, NULL);
|
mysrcpad = gst_check_setup_src_pad (volume, &srctemplate, NULL);
|
||||||
mysinkpad = gst_check_setup_sink_pad (volume, &sinktemplate, NULL);
|
mysinkpad = gst_check_setup_sink_pad (volume, &sinktemplate, NULL);
|
||||||
|
gst_pad_set_active (mysrcpad, TRUE);
|
||||||
|
gst_pad_set_active (mysinkpad, TRUE);
|
||||||
|
|
||||||
return volume;
|
return volume;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue