summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThiago Santos <thiagoss@osg.samsung.com>2015-08-21 16:12:17 -0300
committerThiago Santos <thiagoss@osg.samsung.com>2015-08-21 16:12:17 -0300
commit9c7efa05c5c2df43ff8fcecc165677a705b9ba5c (patch)
tree8f3c84b4ee05af86f3d4d6eda27c865080285459
parent6b74b4ab7b0a4d980ed7355097ffe0d7b55e5737 (diff)
Revert "tests: aacparse: use caps query instead of accept-caps"
-rw-r--r--tests/check/elements/aacparse.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/tests/check/elements/aacparse.c b/tests/check/elements/aacparse.c
index 9022886e2..6ec29d624 100644
--- a/tests/check/elements/aacparse.c
+++ b/tests/check/elements/aacparse.c
@@ -189,7 +189,7 @@ GST_END_TEST;
GST_START_TEST (test_parse_proxy_constraints)
{
- GstCaps *caps, *resultcaps;
+ GstCaps *caps;
GstElement *parse, *filter;
GstPad *sinkpad;
GstStructure *s;
@@ -218,16 +218,12 @@ GST_START_TEST (test_parse_proxy_constraints)
/* should accept without the constraint */
caps = gst_caps_from_string ("audio/mpeg,mpegversion=2");
- resultcaps = gst_pad_query_caps (sinkpad, caps);
- fail_if (gst_caps_is_empty (resultcaps));
- gst_caps_unref (resultcaps);
+ fail_unless (gst_pad_query_accept_caps (sinkpad, caps));
gst_caps_unref (caps);
/* should not accept with conflicting version */
caps = gst_caps_from_string ("audio/mpeg,mpegversion=4");
- resultcaps = gst_pad_query_caps (sinkpad, caps);
- fail_unless (gst_caps_is_empty (resultcaps));
- gst_caps_unref (resultcaps);
+ fail_if (gst_pad_query_accept_caps (sinkpad, caps));
gst_caps_unref (caps);
gst_object_unref (sinkpad);