1
0
Fork 0
forked from len0rd/rockbox

Retrieve the first_index from playlist when updating resume settings instead of incorrectly using start_index

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2575 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Hardeep Sidhu 2002-10-11 09:14:30 +00:00
parent 88098be7e3
commit 3735a15aca
3 changed files with 8 additions and 1 deletions

View file

@ -106,6 +106,11 @@ int playlist_amount(void)
return playlist.amount; return playlist.amount;
} }
int playlist_first_index(void)
{
return playlist.first_index;
}
int playlist_next(int steps) int playlist_next(int steps)
{ {
playlist.index = get_next_index(steps); playlist.index = get_next_index(steps);

View file

@ -53,5 +53,6 @@ void add_indices_to_playlist(void);
void playlist_clear(void); void playlist_clear(void);
int playlist_add(char *filename); int playlist_add(char *filename);
int playlist_amount(void); int playlist_amount(void);
int playlist_first_index(void);
#endif /* __PLAYLIST_H__ */ #endif /* __PLAYLIST_H__ */

View file

@ -906,7 +906,8 @@ bool dirbrowse(char *root)
shuffled list in case shuffle is enabled */ shuffled list in case shuffle is enabled */
global_settings.resume_index = start_index; global_settings.resume_index = start_index;
global_settings.resume_offset = 0; global_settings.resume_offset = 0;
global_settings.resume_first_index = start_index; global_settings.resume_first_index =
playlist_first_index();
global_settings.resume_seed = seed; global_settings.resume_seed = seed;
settings_save(); settings_save();
} }