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

@ -972,6 +972,8 @@ struct plugin_api {
#ifdef HAVE_TAGCACHE
void (*tagcache_commit_finalize)(void);
#endif
int (*playlist_get_first_index)(const struct playlist_info* playlist);
int (*playlist_get_display_index)(void);
};
/* plugin header */