[Bug 672505] New: winscreencap: Fix compiling with mingw

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Tue Mar 20 15:22:49 PDT 2012


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

           Summary: winscreencap: Fix compiling with mingw
    Classification: Platform
           Product: GStreamer
           Version: git
        OS/Version: Windows
            Status: UNCONFIRMED
          Severity: normal
          Priority: Normal
         Component: gst-plugins-bad
        AssignedTo: gstreamer-bugs at lists.freedesktop.org
        ReportedBy: raimo.jarvi at gmail.com
         QAContact: gstreamer-bugs at lists.freedesktop.org
     GNOME version: ---


Compiling with mingw-w64 produces a bunch of warnings and errors:

gstdx9screencapsrc.c: In function 'gst_dx9screencapsrc_set_caps':
gstdx9screencapsrc.c:299:3: error: suggest parentheses around assignment used
as truth value
gstdx9screencapsrc.c:304:3: error: format '%d' expects type 'int', but argument
8 has type 'LONG'
gstdx9screencapsrc.c:304:3: error: format '%d' expects type 'int', but argument
9 has type 'LONG'
gstdx9screencapsrc.c: In function
'gst_dx9screencapsrc_create_caps_from_format':
gstdx9screencapsrc.c:393:13: error: 'GST_VIDEO_RED_MASK_15_INT' undeclared
(first use in this function)
gstdx9screencapsrc.c:393:13: note: each undeclared identifier is reported only
once for each function it appears in
gstdx9screencapsrc.c:394:15: error: 'GST_VIDEO_GREEN_MASK_15_INT' undeclared
(first use in this function)
gstdx9screencapsrc.c:395:14: error: 'GST_VIDEO_BLUE_MASK_15_INT' undeclared
(first use in this function)
gstdx9screencapsrc.c:410:13: error: 'GST_VIDEO_RED_MASK_16_INT' undeclared
(first use in this function)
gstdx9screencapsrc.c:411:15: error: 'GST_VIDEO_GREEN_MASK_16_INT' undeclared
(first use in this function)
gstdx9screencapsrc.c:412:14: error: 'GST_VIDEO_BLUE_MASK_16_INT' undeclared
(first use in this function)
gstdx9screencapsrc.c: In function 'gst_dx9screencapsrc_get_times':
gstdx9screencapsrc.c:481:23: error: unused variable 'src'
gstdx9screencapsrc.c: In function 'gst_dx9screencapsrc_create':
gstdx9screencapsrc.c:538:3: error: format '%lu' expects type 'long unsigned
int', but argument 8 has type 'gint'
gstdx9screencapsrc.c:504:16: error: 'time' may be used uninitialized in this
function

gstgdiscreencapsrc.c: In function 'gst_gdiscreencapsrc_set_caps':
gstgdiscreencapsrc.c:318:3: error: suggest parentheses around assignment used
as truth value
gstgdiscreencapsrc.c:351:3: error: format '%d' expects type 'int', but argument
8 has type 'LONG'
gstgdiscreencapsrc.c:351:3: error: format '%d' expects type 'int', but argument
9 has type 'LONG'
gstgdiscreencapsrc.c: In function 'gst_gdiscreencapsrc_get_caps':
gstgdiscreencapsrc.c:380:3: error: format '%d' expects type 'int', but argument
8 has type 'LONG'
gstgdiscreencapsrc.c:380:3: error: format '%d' expects type 'int', but argument
9 has type 'LONG'
gstgdiscreencapsrc.c: In function 'gst_gdiscreencapsrc_get_times':
gstgdiscreencapsrc.c:419:23: error: unused variable 'src'
gstgdiscreencapsrc.c: In function 'gst_gdiscreencapsrc_create':
gstgdiscreencapsrc.c:457:3: error: format '%lu' expects type 'long unsigned
int', but argument 8 has type 'gint'
gstgdiscreencapsrc.c:457:3: error: format '%d' expects type 'int', but argument
9 has type 'LONG'
gstgdiscreencapsrc.c:457:3: error: format '%d' expects type 'int', but argument
10 has type 'LONG'
gstgdiscreencapsrc.c:442:16: error: 'time' may be used uninitialized in this
function

-- 
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