summaryrefslogtreecommitdiffstats
path: root/audio
diff options
context:
space:
mode:
authorJonathan Yong <10walls@gmail.com>2013-07-30 21:33:00 +0800
committerDiogo Franco (Kovensky) <diogomfranco@gmail.com>2013-07-30 11:05:39 -0300
commit29b0be400c48ec28d9f70b762995b713e77b1864 (patch)
tree9c0a515e1610812eb5633f28249d4f5b8cfd480f /audio
parente777a86b69c9f83766f165b2bf6f05a83eb82605 (diff)
downloadmpv-29b0be400c48ec28d9f70b762995b713e77b1864.tar.bz2
mpv-29b0be400c48ec28d9f70b762995b713e77b1864.tar.xz
Fix some warnings
Diffstat (limited to 'audio')
-rw-r--r--audio/out/ao_wasapi.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/audio/out/ao_wasapi.c b/audio/out/ao_wasapi.c
index 33c4c3b7ea..a5fccdaae4 100644
--- a/audio/out/ao_wasapi.c
+++ b/audio/out/ao_wasapi.c
@@ -294,8 +294,8 @@ static int set_ao_format(struct wasapi_state *state,
wformat.Format.wBitsPerSample, wformat.SubFormat.Data1 == 3);
if (wformat.SubFormat.Data1 != 1 && wformat.SubFormat.Data1 != 3) {
- mp_msg(MSGT_AO, MSGL_ERR, "ao-wasapi: unknown SubFormat %d\n",
- wformat.SubFormat.Data1);
+ mp_msg(MSGT_AO, MSGL_ERR, "ao-wasapi: unknown SubFormat %"PRIu32"\n",
+ (uint32_t)wformat.SubFormat.Data1);
return 0;
}
@@ -798,8 +798,8 @@ static int enumerate_devices(void) {
CoUninitialize();
return 0;
exit_label:
- mp_msg(MSGT_AO, MSGL_ERR, "Error enumerating devices: HRESULT %08x \"%s\"\n",
- hr, explain_err(hr));
+ mp_msg(MSGT_AO, MSGL_ERR, "Error enumerating devices: HRESULT %08"PRIx32" \"%s\"\n",
+ (uint32_t)hr, explain_err(hr));
CoUninitialize();
return 1;
}
@@ -1044,7 +1044,7 @@ static void thread_feed(wasapi_state *state,int force_feed)
return;
exit_label:
EnterCriticalSection(&state->print_lock);
- mp_msg(MSGT_AO, MSGL_ERR, "ao-wasapi: thread_feed fails with %"PRIx32"!\n", hr);
+ mp_msg(MSGT_AO, MSGL_ERR, "ao-wasapi: thread_feed fails with %"PRIx32"!\n", (uint32_t)hr);
LeaveCriticalSection(&state->print_lock);
return;
}
@@ -1107,7 +1107,7 @@ static void thread_uninit(wasapi_state *state)
ExitThread(0);
}
-static unsigned int __stdcall ThreadLoop(void *lpParameter)
+static DWORD __stdcall ThreadLoop(void *lpParameter)
{
struct ao *ao = lpParameter;
int feedwatch = 0;