diff options
author | Thiago Santos <thiagoss@osg.samsung.com> | 2015-08-21 16:12:17 -0300 |
---|---|---|
committer | Thiago Santos <thiagoss@osg.samsung.com> | 2015-08-21 16:12:17 -0300 |
commit | 9c7efa05c5c2df43ff8fcecc165677a705b9ba5c (patch) | |
tree | 8f3c84b4ee05af86f3d4d6eda27c865080285459 | |
parent | 6b74b4ab7b0a4d980ed7355097ffe0d7b55e5737 (diff) |
Revert "tests: aacparse: use caps query instead of accept-caps"
This reverts commit 2b1db231754a323d9264408f7b8e893a467f9988.
-rw-r--r-- | tests/check/elements/aacparse.c | 10 |
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); |