summaryrefslogtreecommitdiff
path: root/tests/check/elements/parser.c
diff options
context:
space:
mode:
authorRené Stadler <rene.stadler@collabora.co.uk>2011-11-24 21:42:39 +0100
committerRené Stadler <rene.stadler@collabora.co.uk>2011-11-24 21:42:39 +0100
commit30b40510ab2fc6bfbbc12e84e5a44d8bdd033ce0 (patch)
tree50f4a094a2ccc57b856c96e2b423c0051c220340 /tests/check/elements/parser.c
parente6df0b672fee7c5d2b9ddee46571b77384dc4fb6 (diff)
tests: update for gstcheck API change
Diffstat (limited to 'tests/check/elements/parser.c')
-rw-r--r--tests/check/elements/parser.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/check/elements/parser.c b/tests/check/elements/parser.c
index 0d5d0baf2..749492c84 100644
--- a/tests/check/elements/parser.c
+++ b/tests/check/elements/parser.c
@@ -147,10 +147,12 @@ setup_element (const gchar * factory, ElementSetup setup,
} else {
element = gst_check_setup_element (factory);
}
- srcpad = gst_check_setup_src_pad (element, src_template, src_caps);
- sinkpad = gst_check_setup_sink_pad (element, sink_template, sink_caps);
+ srcpad = gst_check_setup_src_pad (element, src_template);
+ sinkpad = gst_check_setup_sink_pad (element, sink_template);
gst_pad_set_active (srcpad, TRUE);
gst_pad_set_active (sinkpad, TRUE);
+ fail_unless (gst_pad_set_caps (srcpad, src_caps));
+ fail_unless (gst_pad_set_caps (sinkpad, sink_caps));
bus = gst_bus_new ();
gst_element_set_bus (element, bus);