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()).
This commit is contained in:
Stefan Kost 2008-04-23 07:08:53 +00:00
parent 012d5584ff
commit 7bb59c7efc
2 changed files with 10 additions and 3 deletions

View file

@ -1,3 +1,9 @@
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:

View file

@ -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;
}