summaryrefslogtreecommitdiffstats
path: root/apps/metadata/mp3.c
diff options
context:
space:
mode:
authorYoshihisa Uchida <uchida@rockbox.org>2010-05-15 10:20:06 +0000
committerYoshihisa Uchida <uchida@rockbox.org>2010-05-15 10:20:06 +0000
commitfecf90fda951a817219cd13885d3da22c58bdcb5 (patch)
tree6f62cb75843c5bbdda9393de9b07e929ac61f518 /apps/metadata/mp3.c
parent77ec4b301b32bf1676987fab098194bc23fdf75a (diff)
downloadrockbox-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.c6
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)
/* only seek to end of file if no id3v2 tags were found */
if (!entry->id3v2len) {
- setid3v1title(fd, entry);
+ if (!setid3v1title(fd, entry))
+ {
+ /* when ID3 tags are not found, search APE tags */
+ read_ape_tags(fd, entry);
+ }
}
if(!entry->length || (entry->filesize < 8 ))