1
0
Fork 0
forked from len0rd/rockbox

Patch #700467, corrects a bug when shuffling with play-selected-first set to No

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3714 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Linus Nielsen Feltzing 2003-06-01 00:41:46 +00:00
parent 6e05780ee1
commit 87d5cfe4b7

View file

@ -906,9 +906,16 @@ bool dirbrowse(char *root)
if ( global_settings.resume )
strncpy(global_settings.resume_file,
currdir, MAX_PATH);
start_index =
build_playlist(dircursor+dirstart);
/* when shuffling dir.: play all files even if the
file selected by user is not the first one */
if (global_settings.playlist_shuffle
&& !global_settings.play_selected)
start_index = 0;
/* it is important that we get back the index
in the (shuffled) list and store that */
start_index = play_list(currdir, NULL,