summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorAidan MacDonald <amachronic@protonmail.com>2022-05-15 15:11:41 +0100
committerAidan MacDonald <amachronic@protonmail.com>2022-05-15 15:23:36 +0100
commit2f71571c0ad746ca68a7b7661bae5f799bfd7f35 (patch)
treee5802f350c8653b96670f8c6a82249589cb8ab77 /apps
parent2315266628a886df58560e91c555d1fcb455c7c9 (diff)
downloadrockbox-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.c2
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
497static struct add_to_pl_param addtopl_queue_last_shuf = {PLAYLIST_INSERT_LAST_SHUFFLED, 1, 0}; 497static struct add_to_pl_param addtopl_queue_last_shuf = {PLAYLIST_INSERT_LAST_SHUFFLED, 1, 0};
498 498
499static struct add_to_pl_param addtopl_replace = {PLAYLIST_INSERT, 0, 1}; 499static struct add_to_pl_param addtopl_replace = {PLAYLIST_INSERT, 0, 1};
500static struct add_to_pl_param addtopl_replace_shuffled = {PLAYLIST_INSERT_SHUFFLED, 0, 1}; 500static 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 */
503static int add_to_playlist(void* arg) 503static int add_to_playlist(void* arg)