mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
segment: Use g_slice_dup() now
This commit is contained in:
parent
f75fad6a70
commit
10bc5670a3
1 changed files with 1 additions and 4 deletions
|
@ -99,10 +99,7 @@ gst_segment_copy (GstSegment * segment)
|
||||||
GstSegment *result = NULL;
|
GstSegment *result = NULL;
|
||||||
|
|
||||||
if (segment) {
|
if (segment) {
|
||||||
/* we do not use g_slice_dup or g_slice_copy here because those were
|
result = g_slice_dup (GstSegment, segment);
|
||||||
* added in GLib 2.14 and we require only >= 2.12 */
|
|
||||||
result = g_slice_new (GstSegment);
|
|
||||||
*result = *segment;
|
|
||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue