Use g_slice_copy instead of g_slice_dup.

A (buggy) glib g_slice_dup macro may cause compiler warnings on e.g. x86_64.
This commit is contained in:
Mark Nauwelaerts 2009-04-03 13:46:18 +02:00
parent 14b356b439
commit 66295d508b

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