1
0
mirror of https://github.com/mpv-player/mpv synced 2025-03-08 07:08:12 +00:00

ao_wasapi0: Don't release WASAPI buffer twice

Would cause bogus AUDCLNT_E_OUT_OF_ORDER errors.
This commit is contained in:
Diogo Franco (Kovensky) 2013-07-19 12:36:58 -03:00 committed by wm4
parent 9ab73b6373
commit 20c2947cbb

View File

@ -461,6 +461,7 @@ static void thread_feed(wasapi0_state *state,int force_feed)
state->bufferFrameCount,
AUDCLNT_BUFFERFLAGS_SILENT);
EXIT_ON_ERROR(hr)
return;
}
hr = IAudioRenderClient_ReleaseBuffer(state->pRenderClient,
state->bufferFrameCount, 0);