buffer: explicitly cast to the enum type
authorJosep Torra <n770galaxy@gmail.com>
Wed, 10 Aug 2011 09:39:23 +0000 (11:39 +0200)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Mon, 15 Aug 2011 20:15:22 +0000 (21:15 +0100)
Fixes warning #188: enumerated type mixed with another type reported by ICC.

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

gst/gstbuffer.h

index ad48315..070c7d8 100644 (file)
@@ -412,7 +412,7 @@ typedef enum {
  *
  * Since: 0.10.13
  */
-#define GST_BUFFER_COPY_ALL (GST_BUFFER_COPY_FLAGS | GST_BUFFER_COPY_TIMESTAMPS | GST_BUFFER_COPY_CAPS)
+#define GST_BUFFER_COPY_ALL ((GstBufferCopyFlags) (GST_BUFFER_COPY_FLAGS | GST_BUFFER_COPY_TIMESTAMPS | GST_BUFFER_COPY_CAPS))
 
 /* copies metadata into newly allocated buffer */
 void            gst_buffer_copy_metadata        (GstBuffer *dest, const GstBuffer *src,