diff options
author | Jonathan Gordon <rockbox@jdgordon.info> | 2010-01-13 06:24:21 +0000 |
---|---|---|
committer | Jonathan Gordon <rockbox@jdgordon.info> | 2010-01-13 06:24:21 +0000 |
commit | d668900848a00cebaf5b5210387928f8d2246e99 (patch) | |
tree | 1f0aca4f2cc3e3dce8ffcbbf5d6050291d1817d6 /apps/gui | |
parent | dc0ba917fa94a554a166b1939548b06c9ee49307 (diff) | |
download | rockbox-d668900848a00cebaf5b5210387928f8d2246e99.tar.gz rockbox-d668900848a00cebaf5b5210387928f8d2246e99.zip |
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
Diffstat (limited to 'apps/gui')
-rw-r--r-- | apps/gui/skin_engine/skin_display.c | 11 |
1 files changed, 8 insertions, 3 deletions
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; |