Commit 66295d50 authored by Mark Nauwelaerts's avatar Mark Nauwelaerts
Browse files

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.
parent 14b356b4
......@@ -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;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment