From d4393be0f92f04922c5530d16b6db808d0b683ed Mon Sep 17 00:00:00 2001 From: Kevin Mitchell Date: Fri, 14 Nov 2014 08:03:12 -0800 Subject: ao/wasapi: make calling of thread_init consistent with thread_uninit --- audio/out/ao_wasapi_utils.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'audio/out/ao_wasapi_utils.c') diff --git a/audio/out/ao_wasapi_utils.c b/audio/out/ao_wasapi_utils.c index 9ffaab43fb..921b0dbc6b 100755 --- a/audio/out/ao_wasapi_utils.c +++ b/audio/out/ao_wasapi_utils.c @@ -976,8 +976,10 @@ exit_label: return -1; } -void wasapi_thread_uninit(wasapi_state *state) +void wasapi_thread_uninit(struct ao *ao) { + struct wasapi_state *state = (struct wasapi_state *)ao->priv; + if (state->pAudioClient) IAudioClient_Stop(state->pAudioClient); -- cgit v1.2.3