From 82eec87dd65442c2a7e134dcb89ffc6d07fe5a4b Mon Sep 17 00:00:00 2001 From: Thomas Martitz Date: Wed, 9 Feb 2011 20:22:55 +0000 Subject: [PATCH] Fix red. Not all targets have album art support. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29260 a1c6a512-1295-4272-9138-f99709370657 --- apps/metadata/id3tags.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/metadata/id3tags.c b/apps/metadata/id3tags.c index a20a59f06e..9ee183a1b3 100644 --- a/apps/metadata/id3tags.c +++ b/apps/metadata/id3tags.c @@ -1022,6 +1022,7 @@ void setid3v2title(int fd, struct mp3entry *entry) if (ptag && !*ptag) *ptag = tag; +#ifdef HAVE_ALBUMART /* albumart */ if ((!entry->embed_albumart) && ((tr->tag_length == 4 && !memcmp( header, "APIC", 4)) || @@ -1036,7 +1037,7 @@ void setid3v2title(int fd, struct mp3entry *entry) entry->albumart.type = AA_TYPE_UNKNOWN; } } - +#endif if( tr->ppFunc ) bufferpos = tr->ppFunc(entry, tag, bufferpos);