mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 14:26:43 +00:00
tests: update for gstcheck API change
This commit is contained in:
parent
d69e4e7a2c
commit
2094171aae
4 changed files with 7 additions and 7 deletions
|
@ -64,8 +64,8 @@ setup_audioconvert (GstCaps * outcaps)
|
||||||
audioconvert = gst_check_setup_element ("audioconvert");
|
audioconvert = gst_check_setup_element ("audioconvert");
|
||||||
g_object_set (G_OBJECT (audioconvert), "dithering", 0, NULL);
|
g_object_set (G_OBJECT (audioconvert), "dithering", 0, NULL);
|
||||||
g_object_set (G_OBJECT (audioconvert), "noise-shaping", 0, NULL);
|
g_object_set (G_OBJECT (audioconvert), "noise-shaping", 0, NULL);
|
||||||
mysrcpad = gst_check_setup_src_pad (audioconvert, &srctemplate, NULL);
|
mysrcpad = gst_check_setup_src_pad (audioconvert, &srctemplate);
|
||||||
mysinkpad = gst_check_setup_sink_pad (audioconvert, &sinktemplate, NULL);
|
mysinkpad = gst_check_setup_sink_pad (audioconvert, &sinktemplate);
|
||||||
/* this installs a getcaps func that will always return the caps we set
|
/* this installs a getcaps func that will always return the caps we set
|
||||||
* later */
|
* later */
|
||||||
gst_pad_use_fixed_caps (mysinkpad);
|
gst_pad_use_fixed_caps (mysinkpad);
|
||||||
|
|
|
@ -50,7 +50,7 @@ setup_audiotestsrc (void)
|
||||||
|
|
||||||
GST_DEBUG ("setup_audiotestsrc");
|
GST_DEBUG ("setup_audiotestsrc");
|
||||||
audiotestsrc = gst_check_setup_element ("audiotestsrc");
|
audiotestsrc = gst_check_setup_element ("audiotestsrc");
|
||||||
mysinkpad = gst_check_setup_sink_pad (audiotestsrc, &sinktemplate, NULL);
|
mysinkpad = gst_check_setup_sink_pad (audiotestsrc, &sinktemplate);
|
||||||
gst_pad_set_active (mysinkpad, TRUE);
|
gst_pad_set_active (mysinkpad, TRUE);
|
||||||
|
|
||||||
return audiotestsrc;
|
return audiotestsrc;
|
||||||
|
|
|
@ -73,8 +73,8 @@ setup_vorbisdec (void)
|
||||||
|
|
||||||
GST_DEBUG ("setup_vorbisdec");
|
GST_DEBUG ("setup_vorbisdec");
|
||||||
vorbisdec = gst_check_setup_element ("vorbisdec");
|
vorbisdec = gst_check_setup_element ("vorbisdec");
|
||||||
mysrcpad = gst_check_setup_src_pad (vorbisdec, &srctemplate, NULL);
|
mysrcpad = gst_check_setup_src_pad (vorbisdec, &srctemplate);
|
||||||
mysinkpad = gst_check_setup_sink_pad (vorbisdec, &sinktemplate, NULL);
|
mysinkpad = gst_check_setup_sink_pad (vorbisdec, &sinktemplate);
|
||||||
gst_pad_set_active (mysrcpad, TRUE);
|
gst_pad_set_active (mysrcpad, TRUE);
|
||||||
gst_pad_set_active (mysinkpad, TRUE);
|
gst_pad_set_active (mysinkpad, TRUE);
|
||||||
|
|
||||||
|
|
|
@ -96,8 +96,8 @@ setup_vorbistag (void)
|
||||||
|
|
||||||
GST_DEBUG ("setup_vorbistag");
|
GST_DEBUG ("setup_vorbistag");
|
||||||
vorbistag = gst_check_setup_element ("vorbistag");
|
vorbistag = gst_check_setup_element ("vorbistag");
|
||||||
mysrcpad = gst_check_setup_src_pad (vorbistag, &srctemplate, NULL);
|
mysrcpad = gst_check_setup_src_pad (vorbistag, &srctemplate);
|
||||||
mysinkpad = gst_check_setup_sink_pad (vorbistag, &sinktemplate, NULL);
|
mysinkpad = gst_check_setup_sink_pad (vorbistag, &sinktemplate);
|
||||||
gst_pad_set_active (mysrcpad, TRUE);
|
gst_pad_set_active (mysrcpad, TRUE);
|
||||||
gst_pad_set_active (mysinkpad, TRUE);
|
gst_pad_set_active (mysinkpad, TRUE);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue