output/wasapi: use calculated new buffer instead old one

This commit is contained in:
Shen-Ta Hsieh 2021-03-13 14:13:27 +08:00 committed by Max Kellermann
parent c08a8581ee
commit 4bcdcca7f5
1 changed files with 1 additions and 1 deletions

View File

@ -724,7 +724,7 @@ WasapiOutput::Play(const void *chunk, size_t size)
return size;
do {
const size_t consumed_size = thread->Push({chunk, size});
const size_t consumed_size = thread->Push({input.data, input.size});
if (consumed_size == 0) {
thread->Wait();