• Arsen Arsenović's avatar
    mixer,output: prevent setting volume before outputs are really enabled · 35dbc1a9
    Arsen Arsenović authored
    Previous versions of MPD would call SetVolume on enabled outputs before
    they are ready, causing all of MPD to crash. Checking the really_enabled
    flag prevents this, though it also prevents setting volume before the
    player starts.
    
    Before (with the PipeWire output):
      [i] ~$ mpc clear
      volume: 81%   repeat: off   random: off   single: off   consume: off
      [i] ~$ systemctl --user restart mpd.service
      [i] ~$ mpc volume 100
      MPD error: Connection closed by the server
      [i] ~ 1 $
    
    After:
      [i] ~$ # mpd is freshly started w/o anything in the queue
      [i] ~$ mpc
      volume:100%   repeat: off   random: off   single: off   consume: off
      [i] ~$ mpc volume 80
      MPD error: problems setting volume
      [i] ~ 1 $ mpc
      volume:100%   repeat: off   random: off   single: off   consume: off
      [i] ~$
    35dbc1a9
Name
Last commit
Last update
.github Loading commit data...
android Loading commit data...
build Loading commit data...
doc Loading commit data...
python/build Loading commit data...
src Loading commit data...
subprojects Loading commit data...
systemd Loading commit data...
test Loading commit data...
win32 Loading commit data...
.clang-format Loading commit data...
.gitignore Loading commit data...
.travis.yml Loading commit data...
AUTHORS Loading commit data...
COPYING Loading commit data...
NEWS Loading commit data...
README.md Loading commit data...
meson.build Loading commit data...
meson_options.txt Loading commit data...
mpd.svg Loading commit data...
valgrind.suppressions Loading commit data...