gst: Cast combined-flags constants to their respective target types
[platform/upstream/gstreamer.git] / gst / gstminiobject.h
index 0e3b2cb..b8af1c7 100644 (file)
@@ -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: