From baffaea6e85e704ba0b04e5fc88a6a488e0659c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A0=D1=83=D1=81=D0=BB=D0=B0=D0=BD=20=D0=98=D0=B6=D0=B1?= =?UTF-8?q?=D1=83=D0=BB=D0=B0=D1=82=D0=BE=D0=B2?= Date: Sat, 1 May 2010 01:16:50 +0400 Subject: [PATCH] Fix warnings in directdrawsink and directsoundsrc Fixes #617331 --- sys/directdraw/gstdirectdrawsink.c | 1 + sys/directsound/gstdirectsoundsrc.c | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/sys/directdraw/gstdirectdrawsink.c b/sys/directdraw/gstdirectdrawsink.c index c00b36fe33..a84e6b0e4c 100644 --- a/sys/directdraw/gstdirectdrawsink.c +++ b/sys/directdraw/gstdirectdrawsink.c @@ -1486,6 +1486,7 @@ WndProc (HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam) break; default: button = 4; + action = NULL; } x = LOWORD (lParam); diff --git a/sys/directsound/gstdirectsoundsrc.c b/sys/directsound/gstdirectsoundsrc.c index c6064bb87e..54282f6644 100644 --- a/sys/directsound/gstdirectsoundsrc.c +++ b/sys/directsound/gstdirectsoundsrc.c @@ -329,7 +329,7 @@ dsound_open: DWORD err = GetLastError (); GST_ELEMENT_ERROR (dsoundsrc, RESOURCE, OPEN_READ, ("Unable to open dsound.dll"), (NULL)); - g_print ("0x%x\n", HRESULT_FROM_WIN32 (err)); + g_print ("0x%lx\n", HRESULT_FROM_WIN32 (err)); return FALSE; } } @@ -420,7 +420,7 @@ gst_directsound_src_prepare (GstAudioSrc * asrc, GstRingBufferSpec * spec) spec->bytes_per_sample = (spec->width / 8) * spec->channels; dsoundsrc->bytes_per_sample = spec->bytes_per_sample; - GST_DEBUG ("latency time: %llu - buffer time: %llu", + GST_DEBUG ("latency time: %" G_GUINT64_FORMAT " - buffer time: %" G_GUINT64_FORMAT, spec->latency_time, spec->buffer_time); /* Buffer-time should be allways more than 2*latency */ @@ -446,7 +446,7 @@ gst_directsound_src_prepare (GstAudioSrc * asrc, GstRingBufferSpec * spec) spec->segtotal = spec->width * (wfx.nAvgBytesPerSec / spec->segsize); - GST_DEBUG ("bytes/sec: %d, buffer size: %d, segsize: %d, segtotal: %d", + GST_DEBUG ("bytes/sec: %lu, buffer size: %d, segsize: %d, segtotal: %d", wfx.nAvgBytesPerSec, dsoundsrc->buffer_size, spec->segsize, spec->segtotal);