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/asap.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/asap.c')
-rw-r--r-- | apps/metadata/asap.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/metadata/asap.c b/apps/metadata/asap.c index 0472798462..9e7f227031 100644 --- a/apps/metadata/asap.c +++ b/apps/metadata/asap.c | |||
@@ -248,6 +248,7 @@ bool get_asap_metadata(int fd, struct mp3entry* id3) | |||
248 | 248 | ||
249 | id3->vbr = false; | 249 | id3->vbr = false; |
250 | id3->filesize = filelength; | 250 | id3->filesize = filelength; |
251 | 251 | id3->genre_string = id3_get_num_genre(36); | |
252 | |||
252 | return true; | 253 | return true; |
253 | } | 254 | } |