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:
parent
88098be7e3
commit
3735a15aca
3 changed files with 8 additions and 1 deletions
|
|
@ -106,6 +106,11 @@ int playlist_amount(void)
|
|||
return playlist.amount;
|
||||
}
|
||||
|
||||
int playlist_first_index(void)
|
||||
{
|
||||
return playlist.first_index;
|
||||
}
|
||||
|
||||
int playlist_next(int steps)
|
||||
{
|
||||
playlist.index = get_next_index(steps);
|
||||
|
|
|
|||
|
|
@ -53,5 +53,6 @@ void add_indices_to_playlist(void);
|
|||
void playlist_clear(void);
|
||||
int playlist_add(char *filename);
|
||||
int playlist_amount(void);
|
||||
int playlist_first_index(void);
|
||||
|
||||
#endif /* __PLAYLIST_H__ */
|
||||
|
|
|
|||
|
|
@ -906,7 +906,8 @@ bool dirbrowse(char *root)
|
|||
shuffled list in case shuffle is enabled */
|
||||
global_settings.resume_index = start_index;
|
||||
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;
|
||||
settings_save();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue