]> git.ipfire.org Git - thirdparty/shairport-sync.git/commitdiff
Simplify use of an initial volume figure.
authorMike Brady <4265913+mikebrady@users.noreply.github.com>
Sat, 6 Aug 2022 18:19:43 +0000 (19:19 +0100)
committerMike Brady <4265913+mikebrady@users.noreply.github.com>
Sat, 6 Aug 2022 18:19:43 +0000 (19:19 +0100)
player.c

index a76385b230b5ee8d1f2cbdbfd1ccdae195d923a6..1bb286c8470b7b98e69378ba5134447967cc4c72 100644 (file)
--- a/player.c
+++ b/player.c
@@ -2096,8 +2096,6 @@ void *player_thread_func(void *arg) {
   pthread_setcancelstate(oldState, NULL);
 
   double initial_volume = config.airplay_volume; // default
-  if (conn->initial_airplay_volume_set)          // if we have been given an initial volume
-    initial_volume = conn->initial_airplay_volume;
   // set the default volume to whatever it was before, as stored in the config airplay_volume
   debug(2, "Set initial volume to %f.", initial_volume);
   player_volume(initial_volume, conn); // will contain a cancellation point if asked to wait