diff options
Diffstat (limited to 'apps')
| -rw-r--r-- | apps/playback.c | 33 |
1 files changed, 16 insertions, 17 deletions
diff --git a/apps/playback.c b/apps/playback.c index 2085549..497f250 100644 --- a/apps/playback.c +++ b/apps/playback.c @@ -2407,6 +2407,22 @@ static bool audio_load_track(int offset, bool start_play) } #endif + struct mp3entry *track_id3; + + if (track_widx == track_ridx) + track_id3 = &curtrack_id3; + else + track_id3 = bufgetid3(tracks[track_widx].id3_hid); + +#ifdef HAVE_ALBUMART + if (gui_sync_wps_uses_albumart()) + { + char aa_path[MAX_PATH]; + if (find_albumart(track_id3, aa_path, sizeof(aa_path))) + tracks[track_widx].aa_hid = bufopen(aa_path, 0, TYPE_BITMAP); + } +#endif + /* Load the codec. */ if (!audio_loadcodec(start_play)) { @@ -2427,23 +2443,6 @@ static bool audio_load_track(int offset, bool start_play) goto peek_again; } - struct mp3entry *track_id3; - - if (track_widx == track_ridx) - track_id3 = &curtrack_id3; - else - track_id3 = bufgetid3(tracks[track_widx].id3_hid); - - -#ifdef HAVE_ALBUMART - if (gui_sync_wps_uses_albumart()) - { - char aa_path[MAX_PATH]; - if (find_albumart(track_id3, aa_path, sizeof(aa_path))) - tracks[track_widx].aa_hid = bufopen(aa_path, 0, TYPE_BITMAP); - } -#endif - track_id3->elapsed = 0; enum data_type type = TYPE_PACKET_AUDIO; |