]> git.ipfire.org Git - thirdparty/shairport-sync.git/commitdiff
Don't ask for cover art if not asking for metadata too. Duh.
authorMike Brady <4265913+mikebrady@users.noreply.github.com>
Mon, 6 Dec 2021 18:14:23 +0000 (18:14 +0000)
committerMike Brady <4265913+mikebrady@users.noreply.github.com>
Mon, 6 Dec 2021 18:14:23 +0000 (18:14 +0000)
shairport.c

index 9b7648e3b8dc3561102a0032e2d2ea020feae356..b1faf5c9d15e2bb66ece427dbac3988fe974a545 100644 (file)
@@ -1807,11 +1807,12 @@ int main(int argc, char **argv) {
 
 #ifdef CONFIG_METADATA
   // If we are asking for metadata, turn on the relevant bits
-  if (config.metadata_enabled != 0)
+  if (config.metadata_enabled != 0) {
     config.airplay_features |= (1 << 17) | (1 << 16); // 16 is progress, 17 is text
-  // If we are asking for artwork, turn on the relevant bit
-  if (config.get_coverart)
-    config.airplay_features |= (1 << 15); // 15 is artwork
+    // If we are asking for artwork, turn on the relevant bit
+    if (config.get_coverart)
+      config.airplay_features |= (1 << 15); // 15 is artwork
+  }
 #endif
 
   debug(1, "Features: 0x%" PRIx64 ".", config.airplay_features);