summaryrefslogtreecommitdiffstats
path: root/apps/cuesheet.c
diff options
context:
space:
mode:
authorJonathan Gordon <rockbox@jdgordon.info>2010-07-29 12:37:48 +0000
committerJonathan Gordon <rockbox@jdgordon.info>2010-07-29 12:37:48 +0000
commit2d31d77a8ba231cb03ec35863c4c4ce2024f6509 (patch)
treeb85ca1bede3e83695619064ee9a323f0a8da1865 /apps/cuesheet.c
parente436483b66a931fef6436e9cd3e69eb2b3ff1f7b (diff)
downloadrockbox-2d31d77a8ba231cb03ec35863c4c4ce2024f6509.tar.gz
rockbox-2d31d77a8ba231cb03ec35863c4c4ce2024f6509.tar.bz2
rockbox-2d31d77a8ba231cb03ec35863c4c4ce2024f6509.zip
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
Diffstat (limited to 'apps/cuesheet.c')
-rw-r--r--apps/cuesheet.c14
1 files changed, 8 insertions, 6 deletions
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;
}