Fix bug that caused the bookmark autoload screen to always resume the first bookmark, even if another was selected. Also remove a bogus comment.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14284 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Magnus Holmgren 2007-08-11 14:44:05 +00:00
parent e8361ef2c4
commit 9824dac9e5

View file

@ -401,9 +401,9 @@ bool bookmark_autoload(const char* file)
{ {
char* bookmark = select_bookmark(global_bookmark_file_name, true); char* bookmark = select_bookmark(global_bookmark_file_name, true);
if (bookmark) if (bookmark != NULL)
{ {
return bookmark_load(global_bookmark_file_name, true); return play_bookmark(bookmark);
} }
return false; return false;
@ -452,7 +452,6 @@ static int get_bookmark_count(const char* bookmark_file_name)
if(file < 0) if(file < 0)
return -1; return -1;
/* Get the requested bookmark */
while(read_line(file, global_read_buffer, sizeof(global_read_buffer)) > 0) while(read_line(file, global_read_buffer, sizeof(global_read_buffer)) > 0)
{ {
read_count++; read_count++;