diff options
author | Sebastian Dröge <sebastian.droege@collabora.co.uk> | 2013-04-02 22:13:22 +0200 |
---|---|---|
committer | Sebastian Dröge <sebastian.droege@collabora.co.uk> | 2013-04-02 22:17:22 +0200 |
commit | 65c650d7d4f4f814950cbc90c1369abaeaed0a22 (patch) | |
tree | ee6dd49d780d1595d85ce7191f2760142627816c /tests | |
parent | 0dd761101c2287e108370742594905e2c15408f0 (diff) |
capsfeatures: Add GST_CAPS_FEATURES_ANY
This is equal to any other caps features but results in unfixed caps. It
would be used by elements that only look at the buffer metadata or are
currently working in passthrough mode, and as such don't care about any
specific features.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/check/gst/gstcapsfeatures.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/check/gst/gstcapsfeatures.c b/tests/check/gst/gstcapsfeatures.c index 0c4b04ebf..5f76aa7d2 100644 --- a/tests/check/gst/gstcapsfeatures.c +++ b/tests/check/gst/gstcapsfeatures.c @@ -77,6 +77,20 @@ GST_START_TEST (test_from_to_string) gst_caps_features_free (a); gst_caps_features_free (b); g_free (str); + + a = gst_caps_features_new_any (); + fail_unless (a != NULL); + fail_unless (gst_caps_features_is_any (a)); + str = gst_caps_features_to_string (a); + fail_unless (str != NULL); + fail_unless_equals_string (str, "ANY"); + b = gst_caps_features_from_string (str); + fail_unless (b != NULL); + fail_unless (gst_caps_features_is_equal (a, b)); + fail_unless (gst_caps_features_is_any (b)); + gst_caps_features_free (a); + gst_caps_features_free (b); + g_free (str); } GST_END_TEST; |