mixer_control: don't close the mixer if set_volume() fails
A mixer is useful enough if it can be read. Setting it may be found unavailable at runtime.
This commit is contained in:
parent
c4f895daf4
commit
acc99da73d
|
@ -171,8 +171,6 @@ mixer_set_volume(struct mixer *mixer, unsigned volume, GError **error_r)
|
|||
|
||||
if (mixer->open) {
|
||||
success = mixer->plugin->set_volume(mixer, volume, error_r);
|
||||
if (!success)
|
||||
mixer_failed(mixer);
|
||||
} else
|
||||
success = false;
|
||||
|
||||
|
|
Loading…
Reference in New Issue