gst-plugins-bad: directdrawsink: Fix warnings on 64 bit mingw-w64
Tim Müller
tpm at kemper.freedesktop.org
Mon Feb 13 16:10:35 PST 2012
Module: gst-plugins-bad
Branch: master
Commit: ac681a6efd8ee4f4046fb93764a351a87566cde2
URL: http://cgit.freedesktop.org/gstreamer/gst-plugins-bad/commit/?id=ac681a6efd8ee4f4046fb93764a351a87566cde2
Author: Raimo Järvi <raimo.jarvi at gmail.com>
Date: Sat Aug 27 20:58:48 2011 +0300
directdrawsink: Fix warnings on 64 bit mingw-w64
gstdirectdrawsink.c:1561:24: error: assignment from incompatible pointer type
gstdirectdrawsink.c:2028:3: error: format '%d' expects type 'int', but argument 8 has type 'size_t'
https://bugzilla.gnome.org/show_bug.cgi?id=657522
---
sys/directdraw/gstdirectdrawsink.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/sys/directdraw/gstdirectdrawsink.c b/sys/directdraw/gstdirectdrawsink.c
index bd9b79c..518ca7c 100644
--- a/sys/directdraw/gstdirectdrawsink.c
+++ b/sys/directdraw/gstdirectdrawsink.c
@@ -1416,7 +1416,7 @@ gst_directdraw_sink_setup_ddraw (GstDirectDrawSink * ddrawsink)
return bRet;
}
-static long FAR PASCAL
+static LRESULT FAR PASCAL
WndProc (HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
{
switch (message) {
@@ -2026,7 +2026,7 @@ surface_pitch_bad:
GST_BUFFER_SIZE (surface) = size;
surface->surface = NULL;
GST_CAT_INFO_OBJECT (directdrawsink_debug, ddrawsink,
- "allocating a system memory buffer of %d bytes", size);
+ "allocating a system memory buffer of %" G_GSIZE_FORMAT " bytes", size);
#endif
More information about the gstreamer-commits
mailing list