GNOME Bugzilla – Bug 343829
gst_segment_copy is bogus
Last modified: 2006-06-05 12:56:52 UTC
static GstSegment * gst_segment_copy (GstSegment * segment) { GstSegment *result = NULL; if (segment) { result = gst_segment_new (); memcpy (result, segment, sizeof (GstSegment)); } return NULL; } as you can see 'result' be actually returned after the memcpy
Nice spotting that ! Now fixed in CVS 2006-06-05 Edward Hervey <edward@fluendo.com> * gst/gstsegment.c: (gst_segment_copy): _copy() was always returning NULL...