From d2fb229685c4bc30498b6a57d3b996da2842deac Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 8 Jul 2022 17:20:33 +0200 Subject: [PATCH] output/PipeWire: call ::SetVolume() in ParamChanged() This is a lower-level function without some of the clutter of PipeWireOutput::SetVolume() which is not needed in that case. --- src/output/plugins/PipeWireOutputPlugin.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/output/plugins/PipeWireOutputPlugin.cxx b/src/output/plugins/PipeWireOutputPlugin.cxx index 79a914ad3..78ac228ba 100644 --- a/src/output/plugins/PipeWireOutputPlugin.cxx +++ b/src/output/plugins/PipeWireOutputPlugin.cxx @@ -656,7 +656,7 @@ PipeWireOutput::ParamChanged([[maybe_unused]] uint32_t id, { if (restore_volume) { restore_volume = false; - SetVolume(volume); + ::SetVolume(*stream, channels, volume); } #if defined(ENABLE_DSD) && defined(SPA_AUDIO_DSD_FLAG_NONE)