summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2021-08-10 10:38:10 +0200
committerMax Kellermann <max@musicpd.org>2021-08-10 10:43:28 +0200
commit4ea2ea2a52a89252c4a637374acc0da0b49d68f5 (patch)
treee9bbe0c8e8055c00ddd77a9cb32ec48283b5ab32
parent8a243e6e28bd949e9aa7aeddccaf8df10ec892fb (diff)
output/pipewire: update `nbytes` after calling PcmSilence()
This was missing in commit 8a243e6e28bd94
-rw-r--r--src/output/plugins/PipeWireOutputPlugin.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/output/plugins/PipeWireOutputPlugin.cxx b/src/output/plugins/PipeWireOutputPlugin.cxx
index 3170f488d..33fba8ade 100644
--- a/src/output/plugins/PipeWireOutputPlugin.cxx
+++ b/src/output/plugins/PipeWireOutputPlugin.cxx
@@ -438,6 +438,7 @@ PipeWireOutput::Process() noexcept
/* buffer underrun: generate some silence */
PcmSilence({dest, max_size}, sample_format);
+ nbytes = max_size;
LogWarning(pipewire_output_domain, "Decoder is too slow; playing silence to avoid xrun");
}