gst/gstsegment.c: The glib macro seems to be borked. Use g_slice_copy directly and...
authorStefan Kost <ensonic@users.sourceforge.net>
Wed, 23 Apr 2008 10:14:38 +0000 (10:14 +0000)
committerStefan Kost <ensonic@users.sourceforge.net>
Wed, 23 Apr 2008 10:14:38 +0000 (10:14 +0000)
Original commit message from CVS:
* gst/gstsegment.c:
The glib macro seems to be borked. Use g_slice_copy directly and cast
in the hope that this fixes the warning on 64bit.

ChangeLog
gst/gstsegment.c

index 275e5c3..0a8b1b2 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,12 @@
 2008-04-23  Stefan Kost  <ensonic@users.sf.net>
 
        * gst/gstsegment.c:
+         The glib macro seems to be borked. Use g_slice_copy directly and cast
+         in the hope that this fixes the warning on 64bit.
+
+2008-04-23  Stefan Kost  <ensonic@users.sf.net>
+
+       * gst/gstsegment.c:
          Document the new function. Use g_slice_dup() (no need for
          gst_segment_init()).    
 
index 38a0a6b..fcd148c 100644 (file)
@@ -99,7 +99,7 @@ gst_segment_copy (GstSegment * segment)
   GstSegment *result = NULL;
 
   if (segment) {
-    result = g_slice_dup (GstSegment, segment);
+    result = (GstSegment *) g_slice_copy (sizeof (GstSegment), segment);
   }
   return result;
 }