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
This commit is contained in:
Christian Soffke 2023-10-30 22:44:26 +01:00
parent 9c79a4449a
commit ba62798746
3 changed files with 27 additions and 12 deletions

View file

@ -835,6 +835,8 @@ static const struct plugin_api rockbox_api = {
#ifdef HAVE_TAGCACHE
tagcache_commit_finalize,
#endif
playlist_get_first_index,
playlist_get_display_index,
};
static int plugin_buffer_handle;