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
This commit is contained in:
parent
022f7bbd60
commit
594099f173
1 changed files with 2 additions and 4 deletions
|
@ -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 */
|
||||
|
|
Loading…
Reference in a new issue