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 | |
| parent | b807cb0808b2c045e0fdcd332c711a713eb25032 (diff) | |
| download | rockbox-b8d98fcc1991a60ec1cde475b68fcda67153528b.zip rockbox-b8d98fcc1991a60ec1cde475b68fcda67153528b.tar.gz rockbox-b8d98fcc1991a60ec1cde475b68fcda67153528b.tar.bz2 rockbox-b8d98fcc1991a60ec1cde475b68fcda67153528b.tar.xz | |
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')
| -rw-r--r-- | apps/gui/skin_engine/skin_tokens.c | 7 | ||||
| -rw-r--r-- | apps/gui/wps.c | 1 |
2 files changed, 7 insertions, 1 deletions
diff --git a/apps/gui/skin_engine/skin_tokens.c b/apps/gui/skin_engine/skin_tokens.c index 7997290..39bf0d4 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; diff --git a/apps/gui/wps.c b/apps/gui/wps.c index 090276d..7b84782 100644 --- a/apps/gui/wps.c +++ b/apps/gui/wps.c @@ -1230,7 +1230,6 @@ static void track_changed_callback(void *param) if (wps_state.id3->cuesheet) { cue_find_current_track(wps_state.id3->cuesheet, wps_state.id3->elapsed); - cue_spoof_id3(wps_state.id3->cuesheet, wps_state.id3); } wps_sync_data.do_full_update = true; } |