diff options
author | Aidan MacDonald <amachronic@protonmail.com> | 2022-05-15 15:11:41 +0100 |
---|---|---|
committer | Aidan MacDonald <amachronic@protonmail.com> | 2022-05-15 15:23:36 +0100 |
commit | 2f71571c0ad746ca68a7b7661bae5f799bfd7f35 (patch) | |
tree | e5802f350c8653b96670f8c6a82249589cb8ab77 /apps | |
parent | 2315266628a886df58560e91c555d1fcb455c7c9 (diff) | |
download | rockbox-2f71571c0ad746ca68a7b7661bae5f799bfd7f35.tar.gz rockbox-2f71571c0ad746ca68a7b7661bae5f799bfd7f35.zip |
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
Diffstat (limited to 'apps')
-rw-r--r-- | apps/onplay.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 | |||
497 | static struct add_to_pl_param addtopl_queue_last_shuf = {PLAYLIST_INSERT_LAST_SHUFFLED, 1, 0}; | 497 | static struct add_to_pl_param addtopl_queue_last_shuf = {PLAYLIST_INSERT_LAST_SHUFFLED, 1, 0}; |
498 | 498 | ||
499 | static struct add_to_pl_param addtopl_replace = {PLAYLIST_INSERT, 0, 1}; | 499 | static struct add_to_pl_param addtopl_replace = {PLAYLIST_INSERT, 0, 1}; |
500 | static struct add_to_pl_param addtopl_replace_shuffled = {PLAYLIST_INSERT_SHUFFLED, 0, 1}; | 500 | static struct add_to_pl_param addtopl_replace_shuffled = {PLAYLIST_INSERT_LAST_SHUFFLED, 0, 1}; |
501 | 501 | ||
502 | /* CONTEXT_[TREE|ID3DB|STD] playlist options */ | 502 | /* CONTEXT_[TREE|ID3DB|STD] playlist options */ |
503 | static int add_to_playlist(void* arg) | 503 | static int add_to_playlist(void* arg) |