Bug 860978 - Fix compile error due to warnings as errors in gstreamer backend on Fedora 16, GCC4.6.3. r=edwin
authorChris Pearce <cpearce@mozilla.com>
Fri, 12 Apr 2013 12:28:53 +1200
changeset 128529 2b504b52c50b82ea5d82bdb7008088f53d9c7f12
parent 128528 59360cb3396fd4161f97db5947058bb9f5e17167
child 128530 7095efa510c27fae2e59aa503aef04c3a7db2473
push id26369
push usercpearce@mozilla.com
push dateFri, 12 Apr 2013 00:29:30 +0000
treeherdermozilla-inbound@2b504b52c50b [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersedwin
bugs860978
milestone23.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 860978 - Fix compile error due to warnings as errors in gstreamer backend on Fedora 16, GCC4.6.3. r=edwin
content/media/gstreamer/GStreamerReader.cpp
--- a/content/media/gstreamer/GStreamerReader.cpp
+++ b/content/media/gstreamer/GStreamerReader.cpp
@@ -546,17 +546,17 @@ bool GStreamerReader::DecodeVideoFrame(b
     /* Ugh, upstream is not calling gst_pad_alloc_buffer(). Fallback to
      * allocating a PlanarYCbCrImage backed GstBuffer here and memcpy.
      */
     GstBuffer* tmp = nullptr;
     AllocateVideoBufferFull(nullptr, GST_BUFFER_OFFSET(buffer),
         GST_BUFFER_SIZE(buffer), nullptr, &tmp, image);
 
     /* copy */
-    gst_buffer_copy_metadata(tmp, buffer, GST_BUFFER_COPY_ALL);
+    gst_buffer_copy_metadata(tmp, buffer, (GstBufferCopyFlags)GST_BUFFER_COPY_ALL);
     memcpy(GST_BUFFER_DATA(tmp), GST_BUFFER_DATA(buffer),
         GST_BUFFER_SIZE(tmp));
     gst_buffer_unref(buffer);
     buffer = tmp;
   }
 
   guint8* data = GST_BUFFER_DATA(buffer);