Fix streaming fails if crossfade without gapless
authorMarcel van der Veldt <m.vanderveldt@outlook.com>
Sat, 26 Apr 2025 23:56:47 +0000 (01:56 +0200)
committerMarcel van der Veldt <m.vanderveldt@outlook.com>
Sat, 26 Apr 2025 23:56:47 +0000 (01:56 +0200)
music_assistant/controllers/streams.py

index 3139e0b94b1bb924f9324525da8d841874f7758f..3bdb7541fc12b474c0c63d9566068c49f3934135 100644 (file)
@@ -421,8 +421,11 @@ class StreamsController(CoreController):
         crossfade = await self.mass.config.get_player_config_value(queue.queue_id, CONF_CROSSFADE)
         if crossfade and PlayerFeature.GAPLESS_PLAYBACK not in queue_player.supported_features:
             # crossfade is not supported on this player due to missing gapless playback
-            self.logger.warning("Crossfade disabled: gapless playback not supported on player")
-            return False
+            self.logger.warning(
+                "Crossfade disabled: Player %s does not support gapless playback",
+                queue_player.display_name,
+            )
+            crossfade = False
 
         if crossfade:
             # crossfade is enabled, use special crossfaded single item stream