]> git.ipfire.org Git - thirdparty/shairport-sync.git/commitdiff
Fix silly bug in volume adjust code
authorMike Brady <mikebrady@eircom.net>
Mon, 1 May 2017 07:35:56 +0000 (08:35 +0100)
committerMike Brady <mikebrady@eircom.net>
Mon, 1 May 2017 07:35:56 +0000 (08:35 +0100)
audio_alsa.c

index b173ccc1bd2a075afd7f8c63a4d8254a2875ba3f..7353a4e3f32ca3aafdecd484950dcda7e2a69721 100644 (file)
@@ -933,7 +933,7 @@ static void parameters(audio_parameters *info) {
 void do_volume(double vol) { // caller is assumed to have the alsa_mutex when using this function
   debug(3, "Setting volume db to %f.", vol);
   set_volume = vol;
-  if (hardware_mixer && alsa_mix_handle) {
+  if (hardware_mixer && alsa_mix_handle && volume_set_request) {
     if (has_softvol) {
       if (ctl && elem_id) {
         snd_ctl_elem_value_t *value;