qtwrapper: g_memmove() is deprecated
authorTim-Philipp Müller <tim@centricular.com>
Thu, 21 Nov 2013 15:54:32 +0000 (15:54 +0000)
committerTim-Philipp Müller <tim@centricular.com>
Thu, 21 Nov 2013 15:54:32 +0000 (15:54 +0000)
Just use plain memmove(), g_memmove() is deprecated in
recent GLib versions.

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

sys/qtwrapper/audiodecoders.c
sys/qtwrapper/imagedescription.c
sys/qtwrapper/videodecoders.c

index 2ba1838..0a6ddbc 100644 (file)
@@ -837,7 +837,7 @@ qtwrapper_audio_decoder_chain (GstPad * pad, GstBuffer * buf)
       goto beach;
 
     /* copy data from bufferlist to output buffer */
-    g_memmove (GST_BUFFER_DATA (outbuf),
+    memmove (GST_BUFFER_DATA (outbuf),
         qtwrapper->bufferlist->mBuffers[0].mData, realbytes);
 
     /* 5. calculate timestamp and duration */
index 9822193..e14d60b 100644 (file)
@@ -59,7 +59,7 @@ image_description_for_avc1 (GstBuffer * buf)
   /* write size in Big-Endian */
   GST_WRITE_UINT32_BE (pos, GST_BUFFER_SIZE (buf) + 8);
   GST_WRITE_UINT32_LE (pos + 4, QT_MAKE_FOURCC_BE ('a', 'v', 'c', 'C'));
-  g_memmove (pos + 8, GST_BUFFER_DATA (buf), GST_BUFFER_SIZE (buf));
+  memmove (pos + 8, GST_BUFFER_DATA (buf), GST_BUFFER_SIZE (buf));
 
   return desc;
 }
@@ -126,7 +126,7 @@ image_description_for_mp4v (GstBuffer * buf)
   /*  size */
   QT_WRITE_UINT8 (location + 33, GST_BUFFER_SIZE (buf));
   /*  codec data */
-  g_memmove (location + 34, GST_BUFFER_DATA (buf), GST_BUFFER_SIZE (buf));
+  memmove (location + 34, GST_BUFFER_DATA (buf), GST_BUFFER_SIZE (buf));
   /*  end */
   QT_WRITE_UINT8 (location + 34 + GST_BUFFER_SIZE (buf), 0x06);
   QT_WRITE_UINT8 (location + 34 + GST_BUFFER_SIZE (buf) + 1, 0x01);
index fa4a42b..8c507e7 100644 (file)
@@ -605,11 +605,11 @@ decompressCb (void *decompressionTrackingRefCon,
 
       /* special copy for stride handling */
       for (i = 0; i < qtwrapper->height; i++)
-        g_memmove (GST_BUFFER_DATA (outbuf) + realpixels * i,
+        memmove (GST_BUFFER_DATA (outbuf) + realpixels * i,
             addr + stride * i, realpixels);
 
     } else
-      g_memmove (GST_BUFFER_DATA (outbuf), addr, (int) qtwrapper->outsize);
+      memmove (GST_BUFFER_DATA (outbuf), addr, (int) qtwrapper->outsize);
 
     /* Release CVPixelBuffer */
     CVPixelBufferUnlockBaseAddress (pixelBuffer, 0);