From: René Stadler Date: Thu, 24 Nov 2011 20:42:39 +0000 (+0100) Subject: [MOVED FROM BAD 5/6] tests: update for gstcheck API change X-Git-Tag: RELEASE-0.11.99~14 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=caa34f7bf7f61ff2c0f3b9e743ab39ed86d64738;p=platform%2Fupstream%2Fgst-plugins-good.git [MOVED FROM BAD 5/6] tests: update for gstcheck API change --- diff --git a/tests/check/elements/vp8dec.c b/tests/check/elements/vp8dec.c index 30b010d..4d7da44 100644 --- a/tests/check/elements/vp8dec.c +++ b/tests/check/elements/vp8dec.c @@ -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); diff --git a/tests/check/elements/vp8enc.c b/tests/check/elements/vp8enc.c index 1008c9b..d9c1df6 100644 --- a/tests/check/elements/vp8enc.c +++ b/tests/check/elements/vp8enc.c @@ -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);