mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-25 17:50:36 +00:00
gst: Cast combined-flags constants to their respective target types
This makes C++ compilers a bit more happy without having the user of the constants cast. It also provides the correct type information to GI. https://bugzilla.gnome.org/show_bug.cgi?id=780923
This commit is contained in:
parent
d96c201f5f
commit
42a8ffcd39
3 changed files with 4 additions and 4 deletions
|
@ -432,8 +432,8 @@ typedef enum {
|
|||
* Combination of all possible metadata fields that can be copied with
|
||||
* gst_buffer_copy_into().
|
||||
*/
|
||||
#define GST_BUFFER_COPY_METADATA (GST_BUFFER_COPY_FLAGS | GST_BUFFER_COPY_TIMESTAMPS |\
|
||||
GST_BUFFER_COPY_META)
|
||||
#define GST_BUFFER_COPY_METADATA ((GstBufferCopyFlags) (GST_BUFFER_COPY_FLAGS |\
|
||||
GST_BUFFER_COPY_TIMESTAMPS | GST_BUFFER_COPY_META))
|
||||
|
||||
/**
|
||||
* GST_BUFFER_COPY_ALL: (value 15) (type GstBufferCopyFlags)
|
||||
|
|
|
@ -183,7 +183,7 @@ typedef enum {
|
|||
*
|
||||
* GstMapFlags value alias for GST_MAP_READ | GST_MAP_WRITE
|
||||
*/
|
||||
#define GST_MAP_READWRITE (GST_MAP_READ | GST_MAP_WRITE)
|
||||
#define GST_MAP_READWRITE ((GstMapFlags) (GST_MAP_READ | GST_MAP_WRITE))
|
||||
|
||||
|
||||
/**
|
||||
|
|
|
@ -171,7 +171,7 @@ typedef enum {
|
|||
*
|
||||
* GstLockFlags value alias for GST_LOCK_FLAG_READ | GST_LOCK_FLAG_WRITE
|
||||
*/
|
||||
#define GST_LOCK_FLAG_READWRITE (GST_LOCK_FLAG_READ | GST_LOCK_FLAG_WRITE)
|
||||
#define GST_LOCK_FLAG_READWRITE ((GstLockFlags) (GST_LOCK_FLAG_READ | GST_LOCK_FLAG_WRITE))
|
||||
|
||||
/**
|
||||
* GST_MINI_OBJECT_REFCOUNT:
|
||||
|
|
Loading…
Reference in a new issue