summaryrefslogtreecommitdiff
path: root/src/output
diff options
context:
space:
mode:
authorShen-Ta Hsieh <ibmibmibm.tw@gmail.com>2021-03-13 14:13:27 +0800
committerMax Kellermann <max@musicpd.org>2021-03-13 08:39:56 +0100
commit4bcdcca7f503064812a0da804d938af7c97d5b6c (patch)
treecd6219ebfd551dbc292954e51548fc684915fc8d /src/output
parentc08a8581eed767564d1afe359fdcf6ccbdb4d744 (diff)
output/wasapi: use calculated new buffer instead old one
Diffstat (limited to 'src/output')
-rw-r--r--src/output/plugins/wasapi/WasapiOutputPlugin.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/output/plugins/wasapi/WasapiOutputPlugin.cxx b/src/output/plugins/wasapi/WasapiOutputPlugin.cxx
index fed16fbee..97b66a998 100644
--- a/src/output/plugins/wasapi/WasapiOutputPlugin.cxx
+++ b/src/output/plugins/wasapi/WasapiOutputPlugin.cxx
@@ -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();