diff options
author | Thomas Martitz <kugel@rockbox.org> | 2011-02-09 20:22:55 +0000 |
---|---|---|
committer | Thomas Martitz <kugel@rockbox.org> | 2011-02-09 20:22:55 +0000 |
commit | 82eec87dd65442c2a7e134dcb89ffc6d07fe5a4b (patch) | |
tree | 98ec237b4eee2645929eaa8dbe2808cddf0e3cf8 /apps | |
parent | f577a6a22c646669e56c5436859d2f5ec8b421e8 (diff) | |
download | rockbox-82eec87dd65442c2a7e134dcb89ffc6d07fe5a4b.tar.gz rockbox-82eec87dd65442c2a7e134dcb89ffc6d07fe5a4b.zip |
Fix red. Not all targets have album art support.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29260 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r-- | apps/metadata/id3tags.c | 3 |
1 files changed, 2 insertions, 1 deletions
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) | |||
1022 | if (ptag && !*ptag) | 1022 | if (ptag && !*ptag) |
1023 | *ptag = tag; | 1023 | *ptag = tag; |
1024 | 1024 | ||
1025 | #ifdef HAVE_ALBUMART | ||
1025 | /* albumart */ | 1026 | /* albumart */ |
1026 | if ((!entry->embed_albumart) && | 1027 | if ((!entry->embed_albumart) && |
1027 | ((tr->tag_length == 4 && !memcmp( header, "APIC", 4)) || | 1028 | ((tr->tag_length == 4 && !memcmp( header, "APIC", 4)) || |
@@ -1036,7 +1037,7 @@ void setid3v2title(int fd, struct mp3entry *entry) | |||
1036 | entry->albumart.type = AA_TYPE_UNKNOWN; | 1037 | entry->albumart.type = AA_TYPE_UNKNOWN; |
1037 | } | 1038 | } |
1038 | } | 1039 | } |
1039 | 1040 | #endif | |
1040 | if( tr->ppFunc ) | 1041 | if( tr->ppFunc ) |
1041 | bufferpos = tr->ppFunc(entry, tag, bufferpos); | 1042 | bufferpos = tr->ppFunc(entry, tag, bufferpos); |
1042 | 1043 | ||