GNOME Bugzilla – Bug 625368
gstdatetime.c doesn't compile in VS 2008
Last modified: 2010-07-27 10:30:20 UTC
While merging commit 4cecd73c93b0728cd0e4980ed8d0940c93f9129e to the GStreamer-winbuilds, I've got compiler errors in the function gst_date_time_new_from_unix_epoch: line 323: too many arguments to the function localtime. this line says: localtime(&tt, &tm); but should be memcpy(&tm, localtime (&tt), sizeof(struct tm)); Because localtime takes one argument and returns a pointer.
Thanks for reporting it, fixed with this commit. commit fda35f7ac7cc181e49ce147d3a8e01171b0b9a1e Author: Thiago Santos <thiago.sousa.santos@collabora.co.uk> Date: Tue Jul 27 07:21:19 2010 -0300 gstdatetime: Fix localtime usage localtime only takes one parameter and returns a statically allocated tm struct. Use it correctly. Fixes #625368