[speaker_source] Reshuffle playlist on repeat all restart (#14773)

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Kevin Ahrendt
2026-03-19 00:51:17 -05:00
committed by GitHub
parent e1334cf57f
commit 9d6f2f71e8

View File

@@ -457,6 +457,9 @@ void SpeakerSourceMediaPlayer::process_control_queue_() {
if (ps.playlist_index < ps.playlist.size()) {
this->queue_play_current_(pipeline, ps.playlist_delay_ms);
} else if (ps.repeat_mode == REPEAT_ALL && !ps.playlist.empty()) {
if (!ps.shuffle_indices.empty()) {
this->shuffle_playlist_(pipeline);
}
ps.playlist_index = 0;
this->queue_play_current_(pipeline, ps.playlist_delay_ms);
}