From: <en...@ke...> - 2008-04-23 07:09:00
|
CVS Root: /cvs/gstreamer Module: gstreamer Changes by: ensonic Date: Wed Apr 23 2008 07:09:07 UTC Log message: * gst/gstsegment.c: Document the new function. Use g_slice_dup() (no need for gst_segment_init()). Modified files: . : ChangeLog gst : gstsegment.c Links: http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gstreamer/ChangeLog.diff?r1=1.3799&r2=1.3800 http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gstreamer/gst/gstsegment.c.diff?r1=1.32&r2=1.33 ====Begin Diffs==== Index: ChangeLog =================================================================== RCS file: /cvs/gstreamer/gstreamer/ChangeLog,v retrieving revision 1.3799 retrieving revision 1.3800 diff -u -d -r1.3799 -r1.3800 --- ChangeLog 23 Apr 2008 06:57:26 -0000 1.3799 +++ ChangeLog 23 Apr 2008 07:08:51 -0000 1.3800 @@ -1,5 +1,11 @@ 2008-04-23 Stefan Kost <en...@us...> + * gst/gstsegment.c: + Document the new function. Use g_slice_dup() (no need for + gst_segment_init()). + +2008-04-23 Stefan Kost <en...@us...> * docs/gst/gstreamer-sections.txt: Move GParamSepc macros to standart section. Index: gstsegment.c RCS file: /cvs/gstreamer/gstreamer/gst/gstsegment.c,v retrieving revision 1.32 retrieving revision 1.33 diff -u -d -r1.32 -r1.33 --- gstsegment.c 9 Apr 2008 22:37:22 -0000 1.32 +++ gstsegment.c 23 Apr 2008 07:08:53 -0000 1.33 @@ -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 @@ GstSegment *result = NULL; if (segment) { - result = gst_segment_new (); - memcpy (result, segment, sizeof (GstSegment)); + result = g_slice_dup (GstSegment, segment); } return result; } |