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/mp3.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'apps/metadata/mp3.c') diff --git a/apps/metadata/mp3.c b/apps/metadata/mp3.c index c65fb39cd8..9309242604 100644 --- a/apps/metadata/mp3.c +++ b/apps/metadata/mp3.c @@ -163,14 +163,8 @@ static int getsonglength(int fd, struct mp3entry *entry) * about an MP3 file and updates it's entry accordingly. * Note, that this returns true for successful, false for error! */ -bool get_mp3_metadata(int fd, struct mp3entry *entry, const char *filename) +bool get_mp3_metadata(int fd, struct mp3entry *entry) { -#if CONFIG_CODEC != SWCODEC - memset(entry, 0, sizeof(struct mp3entry)); -#endif - - strlcpy(entry->path, filename, sizeof(entry->path)); - entry->title = NULL; entry->filesize = filesize(fd); entry->id3v2len = getid3v2len(fd); -- cgit v1.2.3