mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-26 11:41:09 +00:00
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.
This commit is contained in:
parent
14b356b439
commit
66295d508b
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue