From 4ea2ea2a52a89252c4a637374acc0da0b49d68f5 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 10 Aug 2021 10:38:10 +0200 Subject: output/pipewire: update `nbytes` after calling PcmSilence() This was missing in commit 8a243e6e28bd94 --- src/output/plugins/PipeWireOutputPlugin.cxx | 1 + 1 file changed, 1 insertion(+) 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"); } -- cgit v1.2.3