output/pipewire: update nbytes after calling PcmSilence()

This was missing in commit 8a243e6e28
This commit is contained in:
Max Kellermann 2021-08-10 10:38:10 +02:00
parent 8a243e6e28
commit 4ea2ea2a52

View File

@ -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");
}