mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-23 15:48:23 +00:00
buffer: Use the correct enum type to fix a compiler warning
gstbuffer.c:522:58: error: implicit conversion from enumeration type 'GstBufferFlags' to different enumeration type 'GstBufferCopyFlags' [-Werror,-Wenum-conversion] if (!gst_buffer_copy_into (copy, (GstBuffer *) buffer, flags, 0, -1)) ~~~~~~~~~~~~~~~~~~~~ ^~~~~ gstbuffer.c:534:46: error: implicit conversion from enumeration type 'GstBufferCopyFlags' to different enumeration type 'GstBufferFlags' [-Werror,-Wenum-conversion] return gst_buffer_copy_with_flags (buffer, GST_BUFFER_COPY_ALL); ~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~ ./gstbuffer.h:433:31: note: expanded from macro 'GST_BUFFER_COPY_ALL' ...((GstBufferCopyFlags)(GST_BUFFER_COPY_METADATA | GST_BUFFER_COPY_MEMORY)) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
This commit is contained in:
parent
dc5793d4b6
commit
21da311743
1 changed files with 1 additions and 1 deletions
|
@ -508,7 +508,7 @@ gst_buffer_copy_into (GstBuffer * dest, GstBuffer * src,
|
|||
}
|
||||
|
||||
static GstBuffer *
|
||||
gst_buffer_copy_with_flags (const GstBuffer * buffer, GstBufferFlags flags)
|
||||
gst_buffer_copy_with_flags (const GstBuffer * buffer, GstBufferCopyFlags flags)
|
||||
{
|
||||
GstBuffer *copy;
|
||||
|
||||
|
|
Loading…
Reference in a new issue