diff options
author | Kevin Mitchell <kevmitch@gmail.com> | 2014-11-14 08:03:12 -0800 |
---|---|---|
committer | Kevin Mitchell <kevmitch@gmail.com> | 2014-11-17 03:37:07 -0800 |
commit | d4393be0f92f04922c5530d16b6db808d0b683ed (patch) | |
tree | 53c22d4638ddac6b31c434467fefc5af6933ab71 /audio/out/ao_wasapi_utils.c | |
parent | 6eb5c6d186c6cd6bd945e408bfc9292e8d17d1da (diff) | |
download | mpv-d4393be0f92f04922c5530d16b6db808d0b683ed.tar.bz2 mpv-d4393be0f92f04922c5530d16b6db808d0b683ed.tar.xz |
ao/wasapi: make calling of thread_init consistent with thread_uninit
Diffstat (limited to 'audio/out/ao_wasapi_utils.c')
-rwxr-xr-x | audio/out/ao_wasapi_utils.c | 4 |
1 files changed, 3 insertions, 1 deletions
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); |