summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorNils Wallménius <nils@rockbox.org>2008-04-12 13:25:16 +0000
committerNils Wallménius <nils@rockbox.org>2008-04-12 13:25:16 +0000
commit84dc8d2c7ea58e15b624a7fbc26d5c48ab6c9c0c (patch)
tree77aece5b6b45f9ecd0630ec179cd85e7793f6eed /apps
parentfef82552e19efd2f2a7c5918c650bbf39bfd454d (diff)
downloadrockbox-84dc8d2c7ea58e15b624a7fbc26d5c48ab6c9c0c.tar.gz
rockbox-84dc8d2c7ea58e15b624a7fbc26d5c48ab6c9c0c.zip
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')
-rw-r--r--apps/gui/gwps-common.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/apps/gui/gwps-common.c b/apps/gui/gwps-common.c
index 2e0afab1ee..8fc1f36484 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)
698 698
699#endif /* HAVE_LCD_CHARCELL */ 699#endif /* HAVE_LCD_CHARCELL */
700 700
701static char* get_codectype(const struct mp3entry* id3)
702{
703 if (id3->codectype < AFMT_NUM_CODECS) {
704 return (char*)audio_formats[id3->codectype].label;
705 } else {
706 return NULL;
707 }
708}
709
701/* Extract a part from a path. 710/* Extract a part from a path.
702 * 711 *
703 * buf - buffer extract part to. 712 * buf - buffer extract part to.
@@ -983,7 +992,7 @@ static char *get_token_value(struct gui_wps *gwps,
983 else 992 else
984 *intval = id3->codectype; 993 *intval = id3->codectype;
985 } 994 }
986 return id3_get_codec(id3); 995 return get_codectype(id3);
987 996
988 case WPS_TOKEN_FILE_FREQUENCY: 997 case WPS_TOKEN_FILE_FREQUENCY:
989 snprintf(buf, buf_size, "%ld", id3->frequency); 998 snprintf(buf, buf_size, "%ld", id3->frequency);