Commit caa34f7b authored by René Stadler's avatar René Stadler Committed by Sebastian Dröge

[MOVED FROM BAD 5/6] tests: update for gstcheck API change

parent 92eae76b
......@@ -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);
......
Markdown is supported
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