mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-09 13:12:37 -05:00
Fix bookmarking/reloading after saving shuffled playlist
The resume index into the playlist file that was used for bookmarks created immediately after saving a shuffled playlist, or for reloading the saved playlist (in case "Reload After Saving" was enabled), tended to be incorrect. The playlist file effectively isn't shuffled anymore after saving it to a file, but the resume index may still have to be rotated unless playback has been stopped and resumed before bookmarking, due to indices that are shifted by first_index. Change-Id: Id335a7a71adc216989d7b415bfa48237d92fd7b0
This commit is contained in:
parent
3f3e185460
commit
d77c417fd1
3 changed files with 8 additions and 2 deletions
|
|
@ -121,7 +121,7 @@ int save_playlist_screen(struct playlist_info* playlist)
|
|||
}
|
||||
|
||||
/* can't trust index from id3 (don't know why), get it from playlist */
|
||||
resume_index = playlist_get_current()->index;
|
||||
resume_index = playlist_get_display_index() - 1;
|
||||
|
||||
struct mp3entry* id3 = audio_current_track();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue