From 66295d508b663a38a2b74f6ccd96c8441a6be954 Mon Sep 17 00:00:00 2001 From: Mark Nauwelaerts Date: Fri, 3 Apr 2009 13:46:18 +0200 Subject: [PATCH] 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. --- gst/gstsegment.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst/gstsegment.c b/gst/gstsegment.c index fe2f1dd16c..e1014d9a03 100644 --- a/gst/gstsegment.c +++ b/gst/gstsegment.c @@ -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; }