From 9c79a4449ab97c2ac414edc26268ca8ed894891a Mon Sep 17 00:00:00 2001 From: Christian Soffke Date: Tue, 31 Oct 2023 17:45:07 +0100 Subject: Playlist Viewer Track Info: Fix displayed index Index was incorrect for shuffled playlists Change-Id: I72f7c07ddd1e6b6815e245ba775bd3aeba8fa5b2 --- apps/playlist_viewer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'apps/playlist_viewer.c') diff --git a/apps/playlist_viewer.c b/apps/playlist_viewer.c index 608a90340e..d9f5d1c203 100644 --- a/apps/playlist_viewer.c +++ b/apps/playlist_viewer.c @@ -523,7 +523,7 @@ static enum pv_onplay_result show_track_info(const struct playlist_entry *curren } return id3_retrieval_successful && - browse_id3_ex(&id3, viewer.playlist, current_track->index + 1, + browse_id3_ex(&id3, viewer.playlist, current_track->display_index, viewer.num_tracks, NULL, 1) ? PV_ONPLAY_USB : PV_ONPLAY_UNCHANGED; } -- cgit v1.2.3