diff options
author | Aidan MacDonald <amachronic@protonmail.com> | 2023-01-22 13:35:27 +0000 |
---|---|---|
committer | Aidan MacDonald <amachronic@protonmail.com> | 2023-03-23 13:01:23 -0400 |
commit | a64cad847e7d24dc4d01d5ab22f6c8dc42f960ae (patch) | |
tree | 90bd4418ff3bdfbd03a225aa40e1695032682e09 /apps/plugin.c | |
parent | d40a598970b04bfe3a867a5e12debc45c149b46b (diff) | |
download | rockbox-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/plugin.c')
-rw-r--r-- | apps/plugin.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/apps/plugin.c b/apps/plugin.c index 1a0aedf3cc..3db4bb2d80 100644 --- a/apps/plugin.c +++ b/apps/plugin.c | |||
@@ -829,6 +829,7 @@ static const struct plugin_api rockbox_api = { | |||
829 | tagtree_subentries_do_action, | 829 | tagtree_subentries_do_action, |
830 | #endif | 830 | #endif |
831 | adjust_volume, | 831 | adjust_volume, |
832 | playlist_set_modified, | ||
832 | }; | 833 | }; |
833 | 834 | ||
834 | static int plugin_buffer_handle; | 835 | static int plugin_buffer_handle; |