Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
GStreamer
gstreamer
Commits
10bc5670
Commit
10bc5670
authored
Mar 26, 2009
by
Sebastian Dröge
Browse files
segment: Use g_slice_dup() now
parent
f75fad6a
Changes
1
Hide whitespace changes
Inline
Side-by-side
gst/gstsegment.c
View file @
10bc5670
...
...
@@ -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
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment