summaryrefslogtreecommitdiff
path: root/apps/gui/skin_engine/skin_tokens.c
diff options
context:
space:
mode:
authorJonathan Gordon <rockbox@jdgordon.info>2010-06-06 06:28:40 +0000
committerJonathan Gordon <rockbox@jdgordon.info>2010-06-06 06:28:40 +0000
commitb8d98fcc1991a60ec1cde475b68fcda67153528b (patch)
treea9e33268e8b289983ee753961894d0608351dc5f /apps/gui/skin_engine/skin_tokens.c
parentb807cb0808b2c045e0fdcd332c711a713eb25032 (diff)
downloadrockbox-b8d98fcc1991a60ec1cde475b68fcda67153528b.tar.gz
rockbox-b8d98fcc1991a60ec1cde475b68fcda67153528b.zip
Change cuesheet handling so the id3 info is not spoofed anymore. If something wants the subtracks info it is easy to get to. This makes next track display in the skins show the next subtrack if we are in a cuesheet
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26611 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/gui/skin_engine/skin_tokens.c')
-rw-r--r--apps/gui/skin_engine/skin_tokens.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/apps/gui/skin_engine/skin_tokens.c b/apps/gui/skin_engine/skin_tokens.c
index 7997290119..39bf0d497e 100644
--- a/apps/gui/skin_engine/skin_tokens.c
+++ b/apps/gui/skin_engine/skin_tokens.c
@@ -34,6 +34,7 @@
34#include "powermgmt.h" 34#include "powermgmt.h"
35#include "sound.h" 35#include "sound.h"
36#include "debug.h" 36#include "debug.h"
37#include "cuesheet.h"
37#ifdef HAVE_LCD_CHARCELLS 38#ifdef HAVE_LCD_CHARCELLS
38#include "hwcompat.h" 39#include "hwcompat.h"
39#endif 40#endif
@@ -513,6 +514,12 @@ const char *get_token_value(struct gui_wps *gwps,
513 *intval = -1; 514 *intval = -1;
514 } 515 }
515 516
517 if (state->id3 && state->id3->cuesheet)
518 {
519 out_text = get_cuesheetid3_token(token, state->id3, token->next?1:0, buf, buf_size);
520 if (out_text)
521 return out_text;
522 }
516 out_text = get_id3_token(token, id3, buf, buf_size, limit, intval); 523 out_text = get_id3_token(token, id3, buf, buf_size, limit, intval);
517 if (out_text) 524 if (out_text)
518 return out_text; 525 return out_text;