diff options
author | Christian Soffke <christian.soffke@gmail.com> | 2023-10-31 17:45:07 +0100 |
---|---|---|
committer | Christian Soffke <christian.soffke@gmail.com> | 2023-10-31 17:45:07 +0100 |
commit | 9c79a4449ab97c2ac414edc26268ca8ed894891a (patch) | |
tree | e9b9bd1960fba9b26d585628386d760c316b39a4 /apps | |
parent | f377ad3ce773f738d322f7f8b6ca8db6d12aff54 (diff) | |
download | rockbox-9c79a4449ab97c2ac414edc26268ca8ed894891a.tar.gz rockbox-9c79a4449ab97c2ac414edc26268ca8ed894891a.zip |
Playlist Viewer Track Info: Fix displayed index
Index was incorrect for shuffled playlists
Change-Id: I72f7c07ddd1e6b6815e245ba775bd3aeba8fa5b2
Diffstat (limited to 'apps')
-rw-r--r-- | apps/playlist_viewer.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 | |||
523 | } | 523 | } |
524 | 524 | ||
525 | return id3_retrieval_successful && | 525 | return id3_retrieval_successful && |
526 | browse_id3_ex(&id3, viewer.playlist, current_track->index + 1, | 526 | browse_id3_ex(&id3, viewer.playlist, current_track->display_index, |
527 | viewer.num_tracks, NULL, 1) ? PV_ONPLAY_USB : PV_ONPLAY_UNCHANGED; | 527 | viewer.num_tracks, NULL, 1) ? PV_ONPLAY_USB : PV_ONPLAY_UNCHANGED; |
528 | } | 528 | } |
529 | 529 | ||