mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-22 08:17:01 +00:00
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:
parent
012d5584ff
commit
7bb59c7efc
2 changed files with 10 additions and 3 deletions
|
@ -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:
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue