From 6e367f59e2315cca7aaac646bf3bf83d188871ec Mon Sep 17 00:00:00 2001 From: Stefan Kost Date: Wed, 23 Apr 2008 10:14:38 +0000 Subject: [PATCH] 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. --- ChangeLog | 6 ++++++ gst/gstsegment.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 275e5c3..0a8b1b2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,6 +1,12 @@ 2008-04-23 Stefan Kost * 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 + + * gst/gstsegment.c: Document the new function. Use g_slice_dup() (no need for gst_segment_init()). diff --git a/gst/gstsegment.c b/gst/gstsegment.c index 38a0a6b..fcd148c 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; } -- 2.7.4