caps: define GST_CAPS_FLAGS_NONE for consistency with other enumerations
authorJosep Torra <n770galaxy@gmail.com>
Tue, 9 Aug 2011 20:48:53 +0000 (22:48 +0200)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Mon, 15 Aug 2011 20:13:29 +0000 (21:13 +0100)
Use them to fix warnings when building with ICC.

API: GST_CAPS_FLAGS_NONE

https://bugzilla.gnome.org/show_bug.cgi?id=656265

gst/gstcaps.c
gst/gstcaps.h

index 6cc6731..df348be 100644 (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
index b7c5c0f..47c0d33 100644 (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;