From: Marcel van der Veldt Date: Sat, 15 Mar 2025 06:48:56 +0000 (+0100) Subject: Fix: snapcast default stream already exists X-Git-Url: https://git.kitaultman.com/?a=commitdiff_plain;h=13f7d87794f6cc96013f4162c2bef63807841015;p=music-assistant-server.git Fix: snapcast default stream already exists --- diff --git a/music_assistant/providers/snapcast/__init__.py b/music_assistant/providers/snapcast/__init__.py index e3475b65..bdb68ac3 100644 --- a/music_assistant/providers/snapcast/__init__.py +++ b/music_assistant/providers/snapcast/__init__.py @@ -421,7 +421,7 @@ class SnapCastProvider(PlayerProvider): if stream := self._get_snapstream(player_id): if stream.identifier == "default": player.active_source = None - elif not stream.identifier.startswith("Music Assistant"): + elif not stream.identifier.startswith(MASS_STREAM_POSTFIX): player.active_source = stream.identifier else: player.active_source = None @@ -754,7 +754,6 @@ class SnapCastProvider(PlayerProvider): f"--stream.codec={self._snapcast_server_transport_codec}", f"--stream.send_to_muted={str(self._snapcast_server_send_to_muted).lower()}", f"--streaming_client.initial_volume={self._snapcast_server_initial_volume}", - "--stream.source=pipe:///tmp/snapfifo?name=default&sampleformat=48000:16:2", ] async with AsyncProcess(args, stdout=True, name="snapserver") as snapserver_proc: # keep reading from stdout until exit