diff options
author | Max Kellermann <max@musicpd.org> | 2021-08-10 10:38:10 +0200 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2021-08-10 10:43:28 +0200 |
commit | 4ea2ea2a52a89252c4a637374acc0da0b49d68f5 (patch) | |
tree | e9bbe0c8e8055c00ddd77a9cb32ec48283b5ab32 | |
parent | 8a243e6e28bd949e9aa7aeddccaf8df10ec892fb (diff) |
output/pipewire: update `nbytes` after calling PcmSilence()
This was missing in commit 8a243e6e28bd94
-rw-r--r-- | src/output/plugins/PipeWireOutputPlugin.cxx | 1 |
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"); } |