mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-09-30 07:42:32 +00:00
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:
parent
abda75bcf5
commit
d99d270a69
2 changed files with 4 additions and 2 deletions
|
@ -166,7 +166,7 @@ gst_caps_new_empty (void)
|
||||||
|
|
||||||
caps->type = GST_TYPE_CAPS;
|
caps->type = GST_TYPE_CAPS;
|
||||||
caps->refcount = 1;
|
caps->refcount = 1;
|
||||||
caps->flags = 0;
|
caps->flags = GST_CAPS_FLAGS_NONE;
|
||||||
caps->structs = g_ptr_array_new ();
|
caps->structs = g_ptr_array_new ();
|
||||||
/* the 32 has been determined by logging caps sizes in _gst_caps_free
|
/* 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
|
* 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
|
* of the result caps to 0 so that other threads don't run away with the
|
||||||
* caps while we are constructing it. */
|
* caps while we are constructing it. */
|
||||||
temp.type = GST_TYPE_CAPS;
|
temp.type = GST_TYPE_CAPS;
|
||||||
temp.flags = 0;
|
temp.flags = GST_CAPS_FLAGS_NONE;
|
||||||
temp.structs = g_ptr_array_new ();
|
temp.structs = g_ptr_array_new ();
|
||||||
|
|
||||||
/* initialize the caps to a refcount of 1 so the caps can be writable for
|
/* initialize the caps to a refcount of 1 so the caps can be writable for
|
||||||
|
|
|
@ -34,12 +34,14 @@ G_BEGIN_DECLS
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* GstCapsFlags:
|
* GstCapsFlags:
|
||||||
|
* @GST_CAPS_FLAGS_NONE: no extra flags (Since 0.10.36)
|
||||||
* @GST_CAPS_FLAGS_ANY: Caps has no specific content, but can contain
|
* @GST_CAPS_FLAGS_ANY: Caps has no specific content, but can contain
|
||||||
* anything.
|
* anything.
|
||||||
*
|
*
|
||||||
* Extra flags for a caps.
|
* Extra flags for a caps.
|
||||||
*/
|
*/
|
||||||
typedef enum {
|
typedef enum {
|
||||||
|
GST_CAPS_FLAGS_NONE = 0,
|
||||||
GST_CAPS_FLAGS_ANY = (1 << 0)
|
GST_CAPS_FLAGS_ANY = (1 << 0)
|
||||||
} GstCapsFlags;
|
} GstCapsFlags;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue