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:
parent
9ab73b6373
commit
20c2947cbb
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user