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:
parent
6e05780ee1
commit
87d5cfe4b7
1 changed files with 7 additions and 0 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue