[gstreamer-bugs] [Bug 393310] New: [gst-plugins-base] pango plugin: localtime_r does not exist in MinGW
GStreamer (bugzilla.gnome.org)
bugzilla-daemon at bugzilla.gnome.org
Fri Jan 5 14:55:28 PST 2007
Do not reply to this via email (we are currently unable to handle email
responses and they get discarded). You can add comments to this bug at
http://bugzilla.gnome.org/show_bug.cgi?id=393310
GStreamer | gst-plugins-base | Ver: HEAD CVS
Summary: [gst-plugins-base] pango plugin: localtime_r does not
exist in MinGW
Product: GStreamer
Version: HEAD CVS
Platform: Other
OS/Version: Windows
Status: UNCONFIRMED
Severity: normal
Priority: Normal
Component: gst-plugins-base
AssignedTo: gstreamer-bugs at lists.sourceforge.net
ReportedBy: vtorri at univ-evry.fr
QAContact: gstreamer-bugs at lists.sourceforge.net
GNOME version: Unspecified
GNOME milestone: Unspecified
The compilation of the pango plugin fails because localtime_r does not exists
in Windows. A solution would be to implement that function. Something like:
#ifdef WIN32
struct tm *
localtime_r (const time_t *t, struct tm *tp)
{
struct tm *l = localtime (t);
if (! l)
return NULL;
if (tp)
*tp = *l;
return tp;
}
#endif /* WIN32 */
I don't know if it can be a problem, but it seems that localtime is not
threadsafe.
--
Configure bugmail: http://bugzilla.gnome.org/userprefs.cgi?tab=email
More information about the Gstreamer-bugs
mailing list