]> git.ipfire.org Git - thirdparty/shairport-sync.git/commitdiff
Don't die if you can't change the volume control -- just report it
authorMike Brady <mikebrady@eircom.net>
Sat, 1 Apr 2017 14:20:30 +0000 (15:20 +0100)
committerMike Brady <mikebrady@eircom.net>
Sat, 1 Apr 2017 14:20:30 +0000 (15:20 +0100)
audio_alsa.c

index e3458cab51c71434d4cd3683dce54c3f72035844..fd3ba0879c71cb15c66acf07de8ffaab721546c0 100644 (file)
@@ -913,7 +913,7 @@ static void volume(double vol) {
         debug(1, "Can't set playback volume accurately to %f dB.", vol);
         if (snd_mixer_selem_set_playback_dB_all(alsa_mix_elem, vol, -1) != 0)
           if (snd_mixer_selem_set_playback_dB_all(alsa_mix_elem, vol, 1) != 0)
-            die("Failed to set playback dB volume");
+            debug(1,"Could not set playback dB volume on the mixer.");
       }
     }
   }