summaryrefslogtreecommitdiff
path: root/apps/plugins
diff options
context:
space:
mode:
authorAidan MacDonald <amachronic@protonmail.com>2023-01-22 13:35:27 +0000
committerAidan MacDonald <amachronic@protonmail.com>2023-03-23 13:01:23 -0400
commita64cad847e7d24dc4d01d5ab22f6c8dc42f960ae (patch)
tree90bd4418ff3bdfbd03a225aa40e1695032682e09 /apps/plugins
parentd40a598970b04bfe3a867a5e12debc45c149b46b (diff)
downloadrockbox-a64cad847e7d24dc4d01d5ab22f6c8dc42f960ae.tar.gz
rockbox-a64cad847e7d24dc4d01d5ab22f6c8dc42f960ae.zip
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
Diffstat (limited to 'apps/plugins')
-rw-r--r--apps/plugins/pictureflow/pictureflow.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/plugins/pictureflow/pictureflow.c b/apps/plugins/pictureflow/pictureflow.c
index 45c4e0fcda..67c26a7dc8 100644
--- a/apps/plugins/pictureflow/pictureflow.c
+++ b/apps/plugins/pictureflow/pictureflow.c
@@ -4246,7 +4246,7 @@ static bool start_playback(bool return_to_WPS)
4246 start_index = rb->playlist_shuffle(*rb->current_tick, pf_tracks.sel); 4246 start_index = rb->playlist_shuffle(*rb->current_tick, pf_tracks.sel);
4247 } 4247 }
4248 rb->playlist_start(start_index, 0, 0); 4248 rb->playlist_start(start_index, 0, 0);
4249 rb->playlist_get_current()->num_inserted_tracks = 0; /* prevent warn_on_pl_erase */ 4249 rb->playlist_set_modified(NULL, false);
4250 old_shuffle = shuffle; 4250 old_shuffle = shuffle;
4251#ifdef USEGSLIB 4251#ifdef USEGSLIB
4252 if (!return_to_WPS) 4252 if (!return_to_WPS)