After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 500808 - gstmpeg2dec compile problem in MSVC 6.0
gstmpeg2dec compile problem in MSVC 6.0
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-ugly
git master
Other Windows
: Normal trivial
: 0.10.7
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2007-12-01 04:59 UTC by Kwang Yul Seo
Modified: 2007-12-03 19:05 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Kwang Yul Seo 2007-12-01 04:59:14 UTC
MSVC 6.0 does not recognize the integer suffix LL used in MPEG_TIME_TO_GST_TIME and GST_TIME_TO_MPEG_TIME macros.

The following fix solves the problem.


#ifndef _MSC_VER
#  define LL(number)   number ## LL
#else   // if defined (_MSC_VER)
#  define LL(number)   number ## I64
#endif   // _MSC_VER


#define MPEG_TIME_TO_GST_TIME(time) ((time) == -1 ? -1 : ((time) * (GST_MSECOND/10)) / LL(9))
#define GST_TIME_TO_MPEG_TIME(time) ((time) == -1 ? -1 : ((time) * LL(9)) / (GST_MSECOND/10))
Comment 1 Kwang Yul Seo 2007-12-01 12:09:22 UTC
Using Glib's G_GINT64_CONSTANT macro seems to more portable.
Comment 2 Wim Taymans 2007-12-03 19:05:07 UTC
        * ext/mpeg2dec/gstmpeg2dec.h:
        Use G_GINT64_CONSTANT, fixes compilation with MSVC 6.0.
        Fixes #500808.