diff options
author | Christian Soffke <christian.soffke@gmail.com> | 2023-10-30 22:44:26 +0100 |
---|---|---|
committer | Christian Soffke <christian.soffke@gmail.com> | 2023-10-31 17:58:17 +0100 |
commit | ba627987465b565356fe373a5225f241c98c7710 (patch) | |
tree | 6ecd77da78a849c591f06474949f881454a00d05 /apps/plugin.c | |
parent | 9c79a4449ab97c2ac414edc26268ca8ed894891a (diff) | |
download | rockbox-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.c')
-rw-r--r-- | apps/plugin.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/plugin.c b/apps/plugin.c index cb6990384c..bd93cb8b5c 100644 --- a/apps/plugin.c +++ b/apps/plugin.c | |||
@@ -835,6 +835,8 @@ static const struct plugin_api rockbox_api = { | |||
835 | #ifdef HAVE_TAGCACHE | 835 | #ifdef HAVE_TAGCACHE |
836 | tagcache_commit_finalize, | 836 | tagcache_commit_finalize, |
837 | #endif | 837 | #endif |
838 | playlist_get_first_index, | ||
839 | playlist_get_display_index, | ||
838 | }; | 840 | }; |
839 | 841 | ||
840 | static int plugin_buffer_handle; | 842 | static int plugin_buffer_handle; |