gst/gstsegment.c: The glib macro seems to be borked. Use g_slice_copy directly and cast in the hope that this fixes t...

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.
This commit is contained in:
Stefan Kost 2008-04-23 10:14:38 +00:00
parent 7bb59c7efc
commit 6e367f59e2
2 changed files with 7 additions and 1 deletions

View file

@ -1,3 +1,9 @@
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:

View 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;
}