mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-18 15:51:11 +00:00
[MOVED FROM BAD 5/6] tests: update for gstcheck API change
This commit is contained in:
parent
92eae76bdb
commit
caa34f7bf7
2 changed files with 6 additions and 4 deletions
|
@ -76,10 +76,11 @@ setup_vp8dec (const gchar * src_caps_str)
|
|||
gst_element_add_pad (bin, ghostpad);
|
||||
gst_object_unref (targetpad);
|
||||
|
||||
srcpad = gst_check_setup_src_pad (bin, &srctemplate, srccaps);
|
||||
sinkpad = gst_check_setup_sink_pad (bin, &sinktemplate, NULL);
|
||||
srcpad = gst_check_setup_src_pad (bin, &srctemplate);
|
||||
sinkpad = gst_check_setup_sink_pad (bin, &sinktemplate);
|
||||
gst_pad_set_active (srcpad, TRUE);
|
||||
gst_pad_set_active (sinkpad, TRUE);
|
||||
fail_unless (gst_pad_set_caps (srcpad, srccaps));
|
||||
|
||||
bus = gst_bus_new ();
|
||||
gst_element_set_bus (bin, bus);
|
||||
|
|
|
@ -51,10 +51,11 @@ setup_vp8enc (const gchar * src_caps_str)
|
|||
|
||||
vp8enc = gst_check_setup_element ("vp8enc");
|
||||
fail_unless (vp8enc != NULL);
|
||||
srcpad = gst_check_setup_src_pad (vp8enc, &srctemplate, srccaps);
|
||||
sinkpad = gst_check_setup_sink_pad (vp8enc, &sinktemplate, NULL);
|
||||
srcpad = gst_check_setup_src_pad (vp8enc, &srctemplate);
|
||||
sinkpad = gst_check_setup_sink_pad (vp8enc, &sinktemplate);
|
||||
gst_pad_set_active (srcpad, TRUE);
|
||||
gst_pad_set_active (sinkpad, TRUE);
|
||||
fail_unless (gst_pad_set_caps (srcpad, srccaps));
|
||||
|
||||
bus = gst_bus_new ();
|
||||
gst_element_set_bus (vp8enc, bus);
|
||||
|
|
Loading…
Reference in a new issue