From acc99da73d7f5ca0ce63aaf770764d0afcbd7de2 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 23 Oct 2009 10:33:23 +0200 Subject: [PATCH] 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. --- src/mixer_control.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/mixer_control.c b/src/mixer_control.c index 7a8ba48e4..3369f9ae8 100644 --- a/src/mixer_control.c +++ b/src/mixer_control.c @@ -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;