caps: define GST_CAPS_FLAGS_NONE for consistency with other enumerations

Use them to fix warnings when building with ICC.

API: GST_CAPS_FLAGS_NONE

https://bugzilla.gnome.org/show_bug.cgi?id=656265
This commit is contained in:
Josep Torra 2011-08-09 22:48:53 +02:00 committed by Tim-Philipp Müller
parent abda75bcf5
commit d99d270a69
2 changed files with 4 additions and 2 deletions

View file

@ -166,7 +166,7 @@ gst_caps_new_empty (void)
caps->type = GST_TYPE_CAPS;
caps->refcount = 1;
caps->flags = 0;
caps->flags = GST_CAPS_FLAGS_NONE;
caps->structs = g_ptr_array_new ();
/* the 32 has been determined by logging caps sizes in _gst_caps_free
* but g_ptr_array uses 16 anyway if it expands once, so this does not help
@ -492,7 +492,7 @@ gst_static_caps_get (GstStaticCaps * static_caps)
* of the result caps to 0 so that other threads don't run away with the
* caps while we are constructing it. */
temp.type = GST_TYPE_CAPS;
temp.flags = 0;
temp.flags = GST_CAPS_FLAGS_NONE;
temp.structs = g_ptr_array_new ();
/* initialize the caps to a refcount of 1 so the caps can be writable for

View file

@ -34,12 +34,14 @@ G_BEGIN_DECLS
/**
* GstCapsFlags:
* @GST_CAPS_FLAGS_NONE: no extra flags (Since 0.10.36)
* @GST_CAPS_FLAGS_ANY: Caps has no specific content, but can contain
* anything.
*
* Extra flags for a caps.
*/
typedef enum {
GST_CAPS_FLAGS_NONE = 0,
GST_CAPS_FLAGS_ANY = (1 << 0)
} GstCapsFlags;