diff options
author | Thomas Martitz <kugel@rockbox.org> | 2010-11-26 18:02:50 +0000 |
---|---|---|
committer | Thomas Martitz <kugel@rockbox.org> | 2010-11-26 18:02:50 +0000 |
commit | 9393e4c24b4c18d7fe1fa8313008f30370cb726e (patch) | |
tree | 746e9210b2144c96b6d58a3f858ccdcb358d854e /apps/metadata/spc.c | |
parent | 756c59a534d2e26b0e62fb94a326182f376b8a97 (diff) | |
download | rockbox-9393e4c24b4c18d7fe1fa8313008f30370cb726e.tar.gz rockbox-9393e4c24b4c18d7fe1fa8313008f30370cb726e.zip |
Change how all the metadata parsers are read from a giant swich/case to function pointers via array index. Also unify the api.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28672 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/metadata/spc.c')
-rw-r--r-- | apps/metadata/spc.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/metadata/spc.c b/apps/metadata/spc.c index 786c678c4c..f1fcb81707 100644 --- a/apps/metadata/spc.c +++ b/apps/metadata/spc.c | |||
@@ -124,5 +124,8 @@ bool get_spc_metadata(int fd, struct mp3entry* id3) | |||
124 | 124 | ||
125 | id3->length = length+fade; | 125 | id3->length = length+fade; |
126 | 126 | ||
127 | id3->filesize = filesize(fd); | ||
128 | id3->genre_string = id3_get_num_genre(36); | ||
129 | |||
127 | return true; | 130 | return true; |
128 | } | 131 | } |