From 9af812c320ca7273cf4a8748d5d945a435e23d90 Mon Sep 17 00:00:00 2001 From: Christian Soffke Date: Tue, 16 Apr 2024 22:56:43 +0200 Subject: [PATCH] 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 --- apps/playlist_viewer.c | 1 + 1 file changed, 1 insertion(+) 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 bool id3_retrieval_successful = false; if (!viewer.playlist && + (audio_status() & AUDIO_STATUS_PLAY) && (playlist_get_resume_info(&viewer.current_playing_track) == current_track->index)) { copy_mp3entry(&id3, audio_current_track()); /* retrieve id3 from RAM */