diff options
author | Jonathan Gordon <rockbox@jdgordon.info> | 2010-07-29 13:23:33 +0000 |
---|---|---|
committer | Jonathan Gordon <rockbox@jdgordon.info> | 2010-07-29 13:23:33 +0000 |
commit | e63e19b50773393064e7a458297b18a835e8b004 (patch) | |
tree | b8d8e5d833bb6243f9537c523c0f378833da2cb2 /apps/cuesheet.c | |
parent | 1de66faa8ebd7d9442fd3b72c868a661a1367344 (diff) |
Fix Database red, move the cuesheet->token code into the skin engine
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27616 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/cuesheet.c')
-rw-r--r-- | apps/cuesheet.c | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/apps/cuesheet.c b/apps/cuesheet.c index a262b12d73..a6831fa97d 100644 --- a/apps/cuesheet.c +++ b/apps/cuesheet.c @@ -346,42 +346,6 @@ bool curr_cuesheet_skip(struct cuesheet *cue, int direction, unsigned long curr_ } } -const char *get_cuesheetid3_token(struct wps_token *token, struct mp3entry *id3, - int offset_tracks, char *buf, int buf_size) -{ - struct cuesheet *cue = id3?id3->cuesheet:NULL; - if (!cue || !cue->curr_track) - return NULL; - - struct cue_track_info *track = cue->curr_track; - if (offset_tracks) - { - if (cue->curr_track_idx+offset_tracks < cue->track_count) - track+=offset_tracks; - else - return NULL; - } - switch (token->type) - { - case SKIN_TOKEN_METADATA_ARTIST: - return *track->performer ? track->performer : NULL; - case SKIN_TOKEN_METADATA_COMPOSER: - return *track->songwriter ? track->songwriter : NULL; - case SKIN_TOKEN_METADATA_ALBUM: - return *cue->title ? cue->title : NULL; - case SKIN_TOKEN_METADATA_ALBUM_ARTIST: - return *cue->performer ? cue->performer : NULL; - case SKIN_TOKEN_METADATA_TRACK_TITLE: - return *track->title ? track->title : NULL; - 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; -} #ifdef HAVE_LCD_BITMAP static inline void draw_veritcal_line_mark(struct screen * screen, |