From 2d31d77a8ba231cb03ec35863c4c4ce2024f6509 Mon Sep 17 00:00:00 2001 From: Jonathan Gordon Date: Thu, 29 Jul 2010 12:37:48 +0000 Subject: FS#11470 - new skin code, finally svn uses the new parser from the theme editor. This means that a skin that passes the editor WILL pass svn and checkwps (unless the target runs out of skin buffer or something. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27613 a1c6a512-1295-4272-9138-f99709370657 --- apps/cuesheet.c | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'apps/cuesheet.c') diff --git a/apps/cuesheet.c b/apps/cuesheet.c index cadb2ab8f6..a262b12d73 100644 --- a/apps/cuesheet.c +++ b/apps/cuesheet.c @@ -363,20 +363,22 @@ const char *get_cuesheetid3_token(struct wps_token *token, struct mp3entry *id3, } switch (token->type) { - case WPS_TOKEN_METADATA_ARTIST: + case SKIN_TOKEN_METADATA_ARTIST: return *track->performer ? track->performer : NULL; - case WPS_TOKEN_METADATA_COMPOSER: + case SKIN_TOKEN_METADATA_COMPOSER: return *track->songwriter ? track->songwriter : NULL; - case WPS_TOKEN_METADATA_ALBUM: + case SKIN_TOKEN_METADATA_ALBUM: return *cue->title ? cue->title : NULL; - case WPS_TOKEN_METADATA_ALBUM_ARTIST: + case SKIN_TOKEN_METADATA_ALBUM_ARTIST: return *cue->performer ? cue->performer : NULL; - case WPS_TOKEN_METADATA_TRACK_TITLE: + case SKIN_TOKEN_METADATA_TRACK_TITLE: return *track->title ? track->title : NULL; - case WPS_TOKEN_METADATA_TRACK_NUMBER: + case SKIN_TOKEN_METADATA_TRACK_NUMBER: snprintf(buf, buf_size, "%d/%d", cue->curr_track_idx+offset_tracks+1, cue->track_count); return buf; + default: + return NULL; } return NULL; } -- cgit v1.2.3