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
This commit is contained in:
Aidan MacDonald 2022-05-15 15:11:41 +01:00
parent 2315266628
commit 2f71571c0a

View file

@ -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)