Commit 10bc5670 authored by Sebastian Dröge's avatar Sebastian Dröge
Browse files

segment: Use g_slice_dup() now

parent f75fad6a
......@@ -99,10 +99,7 @@ gst_segment_copy (GstSegment * segment)
GstSegment *result = NULL;
if (segment) {
/* we do not use g_slice_dup or g_slice_copy here because those were
* added in GLib 2.14 and we require only >= 2.12 */
result = g_slice_new (GstSegment);
*result = *segment;
result = g_slice_dup (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