From 2f71571c0ad746ca68a7b7661bae5f799bfd7f35 Mon Sep 17 00:00:00 2001 From: Aidan MacDonald Date: Sun, 15 May 2022 15:11:41 +0100 Subject: Fix faulty Play Shuffled behavior (FS#13347) When replacing a dynamic playlist with Play Shuffled, the current track could incorrectly be left at the end of the new playlist. Fix this - the current track should always be at the beginning, so it can be skipped past regardless of the repeat/shuffle mode. Change-Id: Ia86539bc23ad8ebd714b8dc50b5720671b4ad0a9 --- apps/onplay.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'apps') diff --git a/apps/onplay.c b/apps/onplay.c index 4ffa6deece..c52bd6101c 100644 --- a/apps/onplay.c +++ b/apps/onplay.c @@ -497,7 +497,7 @@ static struct add_to_pl_param addtopl_queue_shuf = {PLAYLIST_INSERT_SHUFFL static struct add_to_pl_param addtopl_queue_last_shuf = {PLAYLIST_INSERT_LAST_SHUFFLED, 1, 0}; static struct add_to_pl_param addtopl_replace = {PLAYLIST_INSERT, 0, 1}; -static struct add_to_pl_param addtopl_replace_shuffled = {PLAYLIST_INSERT_SHUFFLED, 0, 1}; +static struct add_to_pl_param addtopl_replace_shuffled = {PLAYLIST_INSERT_LAST_SHUFFLED, 0, 1}; /* CONTEXT_[TREE|ID3DB|STD] playlist options */ static int add_to_playlist(void* arg) -- cgit v1.2.3