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 /gst/gstcapsfeatures.h | |
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 'gst/gstcapsfeatures.h')
-rw-r--r-- | gst/gstcapsfeatures.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gst/gstcapsfeatures.h b/gst/gstcapsfeatures.h index cb0359cb2..62d9e3c43 100644 --- a/gst/gstcapsfeatures.h +++ b/gst/gstcapsfeatures.h @@ -35,6 +35,9 @@ typedef struct _GstCapsFeatures GstCapsFeatures; #define GST_CAPS_FEATURE_MEMORY_SYSTEM_MEMORY "memory:SystemMemory" +GST_EXPORT GstCapsFeatures *_gst_caps_features_any; +#define GST_CAPS_FEATURES_ANY (_gst_caps_features_any) + GST_EXPORT GstCapsFeatures *_gst_caps_features_memory_system_memory; #define GST_CAPS_FEATURES_MEMORY_SYSTEM_MEMORY (_gst_caps_features_memory_system_memory) @@ -42,6 +45,7 @@ GType gst_caps_features_get_type (void); gboolean gst_is_caps_features (gconstpointer obj); GstCapsFeatures * gst_caps_features_new_empty (void); +GstCapsFeatures * gst_caps_features_new_any (void); GstCapsFeatures * gst_caps_features_new (const gchar *feature1, ...); GstCapsFeatures * gst_caps_features_new_valist (const gchar *feature1, va_list varargs); GstCapsFeatures * gst_caps_features_new_id (GQuark feature1, ...); @@ -63,6 +67,8 @@ gboolean gst_caps_features_contains (const GstCapsFeatures * features, gboolean gst_caps_features_contains_id (const GstCapsFeatures * features, GQuark feature); gboolean gst_caps_features_is_equal (const GstCapsFeatures * features1, const GstCapsFeatures * features2); +gboolean gst_caps_features_is_any (const GstCapsFeatures * features); + void gst_caps_features_add (GstCapsFeatures * features, const gchar * feature); void gst_caps_features_add_id ( GstCapsFeatures * features, GQuark feature); |