summaryrefslogtreecommitdiff
path: root/apps/plugin.h
diff options
context:
space:
mode:
authorChristian Soffke <christian.soffke@gmail.com>2023-10-30 22:44:26 +0100
committerChristian Soffke <christian.soffke@gmail.com>2023-10-31 17:58:17 +0100
commitba627987465b565356fe373a5225f241c98c7710 (patch)
tree6ecd77da78a849c591f06474949f881454a00d05 /apps/plugin.h
parent9c79a4449ab97c2ac414edc26268ca8ed894891a (diff)
downloadrockbox-ba627987465b565356fe373a5225f241c98c7710.tar.gz
rockbox-ba627987465b565356fe373a5225f241c98c7710.zip
Playing Time plugin: Fix calculation for shuffled playlists
Playing Time produced incorrect results when the playlist's first index wasn't 0. Change-Id: I1c11b876e0e435c824c9ddc0863fd7ee76bda073
Diffstat (limited to 'apps/plugin.h')
-rw-r--r--apps/plugin.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/plugin.h b/apps/plugin.h
index a85af47826..24eb28b2bd 100644
--- a/apps/plugin.h
+++ b/apps/plugin.h
@@ -972,6 +972,8 @@ struct plugin_api {
972#ifdef HAVE_TAGCACHE 972#ifdef HAVE_TAGCACHE
973 void (*tagcache_commit_finalize)(void); 973 void (*tagcache_commit_finalize)(void);
974#endif 974#endif
975 int (*playlist_get_first_index)(const struct playlist_info* playlist);
976 int (*playlist_get_display_index)(void);
975}; 977};
976 978
977/* plugin header */ 979/* plugin header */