From d668900848a00cebaf5b5210387928f8d2246e99 Mon Sep 17 00:00:00 2001 From: Jonathan Gordon Date: Wed, 13 Jan 2010 06:24:21 +0000 Subject: Fix red and yellow. HWCODEC cant see the metadata for more than the next track so only show the filename there git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24221 a1c6a512-1295-4272-9138-f99709370657 --- apps/gui/skin_engine/skin_display.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'apps/gui') diff --git a/apps/gui/skin_engine/skin_display.c b/apps/gui/skin_engine/skin_display.c index e781d43372..e63b078d37 100644 --- a/apps/gui/skin_engine/skin_display.c +++ b/apps/gui/skin_engine/skin_display.c @@ -36,7 +36,7 @@ #include "scrollbar.h" #include "screen_access.h" #include "playlist.h" -#include "playback.h" +#include "audio.h" #ifdef HAVE_LCD_BITMAP #include "peakmeter.h" @@ -175,7 +175,10 @@ static void draw_playlist_viewer_list(struct gui_wps *gwps, int start_item = MAX(0, cur_playlist_pos + viewer->start_offset); int i; - struct mp3entry *pid3, id3; + struct mp3entry *pid3; +#if CONFIG_CODEC == SWCODEC + struct mp3entry id3; +#endif char buf[MAX_PATH*2], tempbuf[MAX_PATH]; @@ -189,11 +192,13 @@ static void draw_playlist_viewer_list(struct gui_wps *gwps, else if (i == cur_playlist_pos+1) { pid3 = audio_next_track(); - } + } +#if CONFIG_CODEC == SWCODEC else if ((i>cur_playlist_pos) && audio_peek_track(&id3, i-cur_playlist_pos)) { pid3 = &id3; } +#endif else pid3 = NULL; -- cgit v1.2.3