summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorJonathan Gordon <rockbox@jdgordon.info>2006-12-27 01:51:33 +0000
committerJonathan Gordon <rockbox@jdgordon.info>2006-12-27 01:51:33 +0000
commit594099f1735e4ca92a9cc10d8375e728a72256f1 (patch)
treebf38aaceaa0f4d07657c12f7ce595aa118be97d5 /apps
parent022f7bbd605e4316eb0a2c7aff3197a8391fe60d (diff)
downloadrockbox-594099f1735e4ca92a9cc10d8375e728a72256f1.zip
rockbox-594099f1735e4ca92a9cc10d8375e728a72256f1.tar.gz
rockbox-594099f1735e4ca92a9cc10d8375e728a72256f1.tar.bz2
rockbox-594099f1735e4ca92a9cc10d8375e728a72256f1.tar.xz
Fix fs#6293. Repeat Shuffle will now shuffle the playlist if shuffle is
off. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11845 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r--apps/playlist.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/apps/playlist.c b/apps/playlist.c
index 27c8676..2928db8 100644
--- a/apps/playlist.c
+++ b/apps/playlist.c
@@ -1033,8 +1033,7 @@ static int get_next_index(const struct playlist_info* playlist, int steps,
if (repeat_mode == -1)
repeat_mode = global_settings.repeat_mode;
- if (repeat_mode == REPEAT_SHUFFLE &&
- (!global_settings.playlist_shuffle || playlist->amount <= 1))
+ if (repeat_mode == REPEAT_SHUFFLE && playlist->amount <= 1)
repeat_mode = REPEAT_ALL;
steps = calculate_step_count(playlist, steps);
@@ -2505,8 +2504,7 @@ int playlist_next(int steps)
if (index < 0)
{
/* end of playlist... or is it */
- if (global_settings.repeat_mode == REPEAT_SHUFFLE &&
- global_settings.playlist_shuffle &&
+ if (global_settings.repeat_mode == REPEAT_SHUFFLE &&
playlist->amount > 1)
{
/* Repeat shuffle mode. Re-shuffle playlist and resume play */