Fixed bad resume_index in dirs with both folders and files

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1789 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Björn Stenberg 2002-08-16 15:23:57 +00:00
parent 52dc182b81
commit 7113ec01b3

View File

@ -368,17 +368,15 @@ void start_resume(void)
}
}
else {
int start_index;
if (!ask_resume())
return;
if (showdir(global_settings.resume_file, 0) < 0 )
return;
start_index = build_playlist(global_settings.resume_index);
build_playlist(global_settings.resume_index);
play_list(global_settings.resume_file,
NULL,
start_index,
global_settings.resume_index,
global_settings.resume_offset,
global_settings.resume_seed);
}