[gstreamer-bugs] [Bug 630802] New: videotestsrc.c doesn't compile in Visual Studio 2008

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Tue Sep 28 02:21:50 PDT 2010


https://bugzilla.gnome.org/show_bug.cgi?id=630802
  GStreamer | gst-plugins-base | git

           Summary: videotestsrc.c doesn't compile in Visual Studio 2008
    Classification: Desktop
           Product: GStreamer
           Version: git
        OS/Version: Windows
            Status: UNCONFIRMED
          Severity: normal
          Priority: Normal
         Component: gst-plugins-base
        AssignedTo: gstreamer-bugs at lists.sourceforge.net
        ReportedBy: wl2776 at gmail.com
         QAContact: gstreamer-bugs at lists.sourceforge.net
      GNOME target: ---
     GNOME version: ---


It complains about the missing rint function.

I propose adding the following few lines of code in the beginning of the file.

#ifdef _MSC_VER
double rint(double x)
{
     return floor(x + 0.5);
}
#endif

-- 
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.




More information about the Gstreamer-bugs mailing list