forked from len0rd/rockbox
playlist: Simplify playlist modified detection
Any modifications to the playlist (insert, delete, shuffle, etc) will cause the modified flag to be set. The flag is cleared when the playlist is saved. Code that generates playlists can manually clear the modified flag if appropriate; there is now a proper API for this so the tagcache and pictureflow don't need to resort to hacks. Change-Id: I8d3c723265a41db07a13de3f1d2abb0444528d57
This commit is contained in:
parent
d40a598970
commit
a64cad847e
7 changed files with 30 additions and 47 deletions
|
@ -4246,7 +4246,7 @@ static bool start_playback(bool return_to_WPS)
|
|||
start_index = rb->playlist_shuffle(*rb->current_tick, pf_tracks.sel);
|
||||
}
|
||||
rb->playlist_start(start_index, 0, 0);
|
||||
rb->playlist_get_current()->num_inserted_tracks = 0; /* prevent warn_on_pl_erase */
|
||||
rb->playlist_set_modified(NULL, false);
|
||||
old_shuffle = shuffle;
|
||||
#ifdef USEGSLIB
|
||||
if (!return_to_WPS)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue