diff options
author | Yoshihisa Uchida <uchida@rockbox.org> | 2010-05-15 10:20:06 +0000 |
---|---|---|
committer | Yoshihisa Uchida <uchida@rockbox.org> | 2010-05-15 10:20:06 +0000 |
commit | fecf90fda951a817219cd13885d3da22c58bdcb5 (patch) | |
tree | 6f62cb75843c5bbdda9393de9b07e929ac61f518 /apps/metadata/mp3.c | |
parent | 77ec4b301b32bf1676987fab098194bc23fdf75a (diff) | |
download | rockbox-fecf90fda951a817219cd13885d3da22c58bdcb5.tar.gz rockbox-fecf90fda951a817219cd13885d3da22c58bdcb5.zip |
mp3: when ID3 tags are not found, search APE tags
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26048 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/metadata/mp3.c')
-rw-r--r-- | apps/metadata/mp3.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/apps/metadata/mp3.c b/apps/metadata/mp3.c index c65fb39cd8..d20dffeb27 100644 --- a/apps/metadata/mp3.c +++ b/apps/metadata/mp3.c | |||
@@ -190,7 +190,11 @@ bool get_mp3_metadata(int fd, struct mp3entry *entry, const char *filename) | |||
190 | 190 | ||
191 | /* only seek to end of file if no id3v2 tags were found */ | 191 | /* only seek to end of file if no id3v2 tags were found */ |
192 | if (!entry->id3v2len) { | 192 | if (!entry->id3v2len) { |
193 | setid3v1title(fd, entry); | 193 | if (!setid3v1title(fd, entry)) |
194 | { | ||
195 | /* when ID3 tags are not found, search APE tags */ | ||
196 | read_ape_tags(fd, entry); | ||
197 | } | ||
194 | } | 198 | } |
195 | 199 | ||
196 | if(!entry->length || (entry->filesize < 8 )) | 200 | if(!entry->length || (entry->filesize < 8 )) |