From 426089d2ec4ff51d8266978ae5c860550214cf18 Mon Sep 17 00:00:00 2001 From: Maxim Raznatovski Date: Tue, 28 Jan 2025 00:13:49 +0100 Subject: [PATCH] Fix: Incorrect DSPState with synchronized playback (#1912) fix: always check if group is preventing DSP --- music_assistant/helpers/audio.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/music_assistant/helpers/audio.py b/music_assistant/helpers/audio.py index b923353e..55c931e5 100644 --- a/music_assistant/helpers/audio.py +++ b/music_assistant/helpers/audio.py @@ -220,7 +220,7 @@ def get_stream_dsp_details( """Return DSP details of all players playing this queue, keyed by player_id.""" player = mass.players.get(queue_id) dsp = {} - group_preventing_dsp: bool = False + group_preventing_dsp = is_grouping_preventing_dsp(player) # We skip the PlayerGroups as they don't provide an audio output # by themselves, but only sync other players. @@ -228,8 +228,6 @@ def get_stream_dsp_details( details = get_player_dsp_details(mass, player) details.is_leader = True dsp[player.player_id] = details - else: - group_preventing_dsp = is_grouping_preventing_dsp(player) if player and player.group_childs: # grouped playback, get DSP details for each player in the group -- 2.34.1