diff options
author | Jonathan Gordon <rockbox@jdgordon.info> | 2010-06-06 06:28:40 +0000 |
---|---|---|
committer | Jonathan Gordon <rockbox@jdgordon.info> | 2010-06-06 06:28:40 +0000 |
commit | b8d98fcc1991a60ec1cde475b68fcda67153528b (patch) | |
tree | a9e33268e8b289983ee753961894d0608351dc5f /apps/gui/skin_engine/skin_tokens.c | |
parent | b807cb0808b2c045e0fdcd332c711a713eb25032 (diff) |
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.c | 7 |
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 @@ #include "powermgmt.h" #include "sound.h" #include "debug.h" +#include "cuesheet.h" #ifdef HAVE_LCD_CHARCELLS #include "hwcompat.h" #endif @@ -513,6 +514,12 @@ const char *get_token_value(struct gui_wps *gwps, *intval = -1; } + if (state->id3 && state->id3->cuesheet) + { + out_text = get_cuesheetid3_token(token, state->id3, token->next?1:0, buf, buf_size); + if (out_text) + return out_text; + } out_text = get_id3_token(token, id3, buf, buf_size, limit, intval); if (out_text) return out_text; |