Commit 7bb59c7e authored by Stefan Kost's avatar Stefan Kost
Browse files

gst/gstsegment.c: Document the new function. Use g_slice_dup() (no need for gst_segment_init()).

Original commit message from CVS:
* gst/gstsegment.c:
Document the new function. Use g_slice_dup() (no need for
gst_segment_init()).
parent 012d5584
2008-04-23 Stefan Kost <ensonic@users.sf.net>
* gst/gstsegment.c:
Document the new function. Use g_slice_dup() (no need for
gst_segment_init()).
2008-04-23 Stefan Kost <ensonic@users.sf.net>
 
* docs/gst/gstreamer-sections.txt:
......
......@@ -87,7 +87,9 @@
* gst_segment_copy:
* @segment: a #GstSegment
*
* Returns: a copy of @segment, free with gst_segment_free().
* Create a copy of given @segment.
*
* Returns: a new #GstSegment, free with gst_segment_free().
*
* Since: 0.10.20
*/
......@@ -97,8 +99,7 @@ gst_segment_copy (GstSegment * segment)
GstSegment *result = NULL;
if (segment) {
result = gst_segment_new ();
memcpy (result, segment, sizeof (GstSegment));
result = g_slice_dup (GstSegment, segment);
}
return result;
}
......
Supports Markdown
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