diff --git a/gst/gstbuffer.h b/gst/gstbuffer.h index 3188cb4b5a..916f947267 100644 --- a/gst/gstbuffer.h +++ b/gst/gstbuffer.h @@ -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) diff --git a/gst/gstmemory.h b/gst/gstmemory.h index 1d3d1a79df..a69dd968d6 100644 --- a/gst/gstmemory.h +++ b/gst/gstmemory.h @@ -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)) /** diff --git a/gst/gstminiobject.h b/gst/gstminiobject.h index 0e3b2cbbd5..b8af1c779f 100644 --- a/gst/gstminiobject.h +++ b/gst/gstminiobject.h @@ -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: