From 9393e4c24b4c18d7fe1fa8313008f30370cb726e Mon Sep 17 00:00:00 2001 From: Thomas Martitz Date: Fri, 26 Nov 2010 18:02:50 +0000 Subject: 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 --- apps/metadata/spc.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'apps/metadata/spc.c') 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) id3->length = length+fade; + id3->filesize = filesize(fd); + id3->genre_string = id3_get_num_genre(36); + return true; } -- cgit v1.2.3