summaryrefslogtreecommitdiff
path: root/apps/gui/skin_engine/skin_display.c
diff options
context:
space:
mode:
authorJonathan Gordon <rockbox@jdgordon.info>2010-01-13 06:24:21 +0000
committerJonathan Gordon <rockbox@jdgordon.info>2010-01-13 06:24:21 +0000
commitd668900848a00cebaf5b5210387928f8d2246e99 (patch)
tree1f0aca4f2cc3e3dce8ffcbbf5d6050291d1817d6 /apps/gui/skin_engine/skin_display.c
parentdc0ba917fa94a554a166b1939548b06c9ee49307 (diff)
downloadrockbox-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/skin_engine/skin_display.c')
-rw-r--r--apps/gui/skin_engine/skin_display.c11
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 @@
36#include "scrollbar.h" 36#include "scrollbar.h"
37#include "screen_access.h" 37#include "screen_access.h"
38#include "playlist.h" 38#include "playlist.h"
39#include "playback.h" 39#include "audio.h"
40 40
41#ifdef HAVE_LCD_BITMAP 41#ifdef HAVE_LCD_BITMAP
42#include "peakmeter.h" 42#include "peakmeter.h"
@@ -175,7 +175,10 @@ static void draw_playlist_viewer_list(struct gui_wps *gwps,
175 int start_item = MAX(0, cur_playlist_pos + viewer->start_offset); 175 int start_item = MAX(0, cur_playlist_pos + viewer->start_offset);
176 int i; 176 int i;
177 177
178 struct mp3entry *pid3, id3; 178 struct mp3entry *pid3;
179#if CONFIG_CODEC == SWCODEC
180 struct mp3entry id3;
181#endif
179 char buf[MAX_PATH*2], tempbuf[MAX_PATH]; 182 char buf[MAX_PATH*2], tempbuf[MAX_PATH];
180 183
181 184
@@ -189,11 +192,13 @@ static void draw_playlist_viewer_list(struct gui_wps *gwps,
189 else if (i == cur_playlist_pos+1) 192 else if (i == cur_playlist_pos+1)
190 { 193 {
191 pid3 = audio_next_track(); 194 pid3 = audio_next_track();
192 } 195 }
196#if CONFIG_CODEC == SWCODEC
193 else if ((i>cur_playlist_pos) && audio_peek_track(&id3, i-cur_playlist_pos)) 197 else if ((i>cur_playlist_pos) && audio_peek_track(&id3, i-cur_playlist_pos))
194 { 198 {
195 pid3 = &id3; 199 pid3 = &id3;
196 } 200 }
201#endif
197 else 202 else
198 pid3 = NULL; 203 pid3 = NULL;
199 204