Commit c7a43551 authored by Arsen Arsenović's avatar Arsen Arsenović Committed by Max Kellermann

outputs/pipewire: fix ParamChanged incorrectly setting volume

Previous versions of MPD would, on parameter change, set the PipeWire volume before clearing the restore_volume flag, causing the call to short circuit and do nothing. Instead, clear the flag before the call.
parent 33a84a8c
...@@ -4,6 +4,7 @@ ver 0.23.7 (not yet released) ...@@ -4,6 +4,7 @@ ver 0.23.7 (not yet released)
* output * output
- shout: require at least libshout 2.4.0 - shout: require at least libshout 2.4.0
* mixer * mixer
- pipewire: fix volume restore
- software: update volume of disabled outputs - software: update volume of disabled outputs
* support libiconv * support libiconv
......
...@@ -638,8 +638,8 @@ PipeWireOutput::ParamChanged([[maybe_unused]] uint32_t id, ...@@ -638,8 +638,8 @@ PipeWireOutput::ParamChanged([[maybe_unused]] uint32_t id,
[[maybe_unused]] const struct spa_pod *param) noexcept [[maybe_unused]] const struct spa_pod *param) noexcept
{ {
if (restore_volume) { if (restore_volume) {
SetVolume(volume);
restore_volume = false; restore_volume = false;
SetVolume(volume);
} }
#if defined(ENABLE_DSD) && defined(SPA_AUDIO_DSD_FLAG_NONE) #if defined(ENABLE_DSD) && defined(SPA_AUDIO_DSD_FLAG_NONE)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment