diff options
author | Thiago Santos <thiagoss@osg.samsung.com> | 2015-08-14 11:41:42 -0300 |
---|---|---|
committer | Thiago Santos <thiagoss@osg.samsung.com> | 2015-08-14 13:42:27 -0300 |
commit | 2b1db231754a323d9264408f7b8e893a467f9988 (patch) | |
tree | fab5d32b981f4b969d648477c21008ff57a2f5bf /tests | |
parent | 9523fb23ed67440e30ce03e666052b64fe7e1801 (diff) |
tests: aacparse: use caps query instead of accept-caps
The accept-caps query just does a shallow check at the current
element while at this test we want it to also look at downstream.
So use caps query there.
https://bugzilla.gnome.org/show_bug.cgi?id=753623
Diffstat (limited to 'tests')
-rw-r--r-- | tests/check/elements/aacparse.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/tests/check/elements/aacparse.c b/tests/check/elements/aacparse.c index 6ec29d624..9022886e2 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; + GstCaps *caps, *resultcaps; GstElement *parse, *filter; GstPad *sinkpad; GstStructure *s; @@ -218,12 +218,16 @@ GST_START_TEST (test_parse_proxy_constraints) /* should accept without the constraint */ caps = gst_caps_from_string ("audio/mpeg,mpegversion=2"); - fail_unless (gst_pad_query_accept_caps (sinkpad, caps)); + resultcaps = gst_pad_query_caps (sinkpad, caps); + fail_if (gst_caps_is_empty (resultcaps)); + gst_caps_unref (resultcaps); gst_caps_unref (caps); /* should not accept with conflicting version */ caps = gst_caps_from_string ("audio/mpeg,mpegversion=4"); - fail_if (gst_pad_query_accept_caps (sinkpad, caps)); + resultcaps = gst_pad_query_caps (sinkpad, caps); + fail_unless (gst_caps_is_empty (resultcaps)); + gst_caps_unref (resultcaps); gst_caps_unref (caps); gst_object_unref (sinkpad); |