Fix red. Not all targets have album art support.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29260 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Thomas Martitz 2011-02-09 20:22:55 +00:00
parent f577a6a22c
commit 82eec87dd6

View file

@ -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);