diff options
author | Christian Soffke <christian.soffke@gmail.com> | 2024-04-16 22:56:43 +0200 |
---|---|---|
committer | Christian Soffke <christian.soffke@gmail.com> | 2024-04-16 22:56:43 +0200 |
commit | 9af812c320ca7273cf4a8748d5d945a435e23d90 (patch) | |
tree | 9c11c5e50a297d9ab4244d6b06b137aed0e7b8ae | |
parent | b06073f7716373b115b4e039193ce622dbccb3a5 (diff) | |
download | rockbox-9af812c320ca7273cf4a8748d5d945a435e23d90.tar.gz rockbox-9af812c320ca7273cf4a8748d5d945a435e23d90.zip |
playlist viewer: fix track info for first track of a stopped current playlist
A playlist that hasn't finished and is resumed without starting
playback has its index set to 0 by empty_playlist_unlocked.
So ignore the index for stopped playlists.
Change-Id: I575ceacbcd2369eaa3ae4e47de7b2f7e999248f5
-rw-r--r-- | apps/playlist_viewer.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/apps/playlist_viewer.c b/apps/playlist_viewer.c index 61a765ca9e..579eba5a61 100644 --- a/apps/playlist_viewer.c +++ b/apps/playlist_viewer.c | |||
@@ -516,6 +516,7 @@ static enum pv_onplay_result show_track_info(const struct playlist_entry *curren | |||
516 | bool id3_retrieval_successful = false; | 516 | bool id3_retrieval_successful = false; |
517 | 517 | ||
518 | if (!viewer.playlist && | 518 | if (!viewer.playlist && |
519 | (audio_status() & AUDIO_STATUS_PLAY) && | ||
519 | (playlist_get_resume_info(&viewer.current_playing_track) == current_track->index)) | 520 | (playlist_get_resume_info(&viewer.current_playing_track) == current_track->index)) |
520 | { | 521 | { |
521 | copy_mp3entry(&id3, audio_current_track()); /* retrieve id3 from RAM */ | 522 | copy_mp3entry(&id3, audio_current_track()); /* retrieve id3 from RAM */ |