mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-28 20:05:38 +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;
|
||||
|
||||
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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue