abarisain/dmix — pull request #410 by philchand (2014-01-06 12:47:45+00:00)
Title: Volume bar remove when MPD get volume returns -1 (no volume control)

Hi

He's a small submit to remove the volume bar when MPD server returns -1 on call to get volume. This indicates that the output device does not have a volume control, for instance optical output. The volume bar in this instances is useless to the user and performs not function and is slightly confusing to the user. Therefore we can detect this condition from the getVolume() and hide and disable the UI volume control.

Note: I've not tested with a MPD server that the output does support control of volume on the output device.

Phil

some of the white space got changed in the process, I'm not sure how or why, but have corrected most that I can see