diff options
| author | Nils Wallménius <nils@rockbox.org> | 2008-04-12 13:25:16 +0000 |
|---|---|---|
| committer | Nils Wallménius <nils@rockbox.org> | 2008-04-12 13:25:16 +0000 |
| commit | 84dc8d2c7ea58e15b624a7fbc26d5c48ab6c9c0c (patch) | |
| tree | 77aece5b6b45f9ecd0630ec179cd85e7793f6eed /apps/gui | |
| parent | fef82552e19efd2f2a7c5918c650bbf39bfd454d (diff) | |
| download | rockbox-84dc8d2c7ea58e15b624a7fbc26d5c48ab6c9c0c.zip rockbox-84dc8d2c7ea58e15b624a7fbc26d5c48ab6c9c0c.tar.gz rockbox-84dc8d2c7ea58e15b624a7fbc26d5c48ab6c9c0c.tar.bz2 rockbox-84dc8d2c7ea58e15b624a7fbc26d5c48ab6c9c0c.tar.xz | |
Move a function to gwps-common.c because it belongs there
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17084 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/gui')
| -rw-r--r-- | apps/gui/gwps-common.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/apps/gui/gwps-common.c b/apps/gui/gwps-common.c index 2e0afab..8fc1f36 100644 --- a/apps/gui/gwps-common.c +++ b/apps/gui/gwps-common.c @@ -698,6 +698,15 @@ static void draw_player_fullbar(struct gui_wps *gwps, char* buf, int buf_size) #endif /* HAVE_LCD_CHARCELL */ +static char* get_codectype(const struct mp3entry* id3) +{ + if (id3->codectype < AFMT_NUM_CODECS) { + return (char*)audio_formats[id3->codectype].label; + } else { + return NULL; + } +} + /* Extract a part from a path. * * buf - buffer extract part to. @@ -983,7 +992,7 @@ static char *get_token_value(struct gui_wps *gwps, else *intval = id3->codectype; } - return id3_get_codec(id3); + return get_codectype(id3); case WPS_TOKEN_FILE_FREQUENCY: snprintf(buf, buf_size, "%ld", id3->frequency); |