summaryrefslogtreecommitdiff
path: root/apps/metadata/id3tags.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/metadata/id3tags.c')
-rw-r--r--apps/metadata/id3tags.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/metadata/id3tags.c b/apps/metadata/id3tags.c
index dcb80347db..85025c61b1 100644
--- a/apps/metadata/id3tags.c
+++ b/apps/metadata/id3tags.c
@@ -301,7 +301,7 @@ static int parsegenre( struct mp3entry* entry, char* tag, int bufferpos )
301/* parse embed albumart */ 301/* parse embed albumart */
302static int parsealbumart( struct mp3entry* entry, char* tag, int bufferpos ) 302static int parsealbumart( struct mp3entry* entry, char* tag, int bufferpos )
303{ 303{
304 entry->embed_albumart = false; 304 entry->has_embedded_albumart = false;
305 305
306 /* we currently don't support unsynchronizing albumart */ 306 /* we currently don't support unsynchronizing albumart */
307 if (entry->albumart.type == AA_TYPE_UNSYNC) 307 if (entry->albumart.type == AA_TYPE_UNSYNC)
@@ -347,7 +347,7 @@ static int parsealbumart( struct mp3entry* entry, char* tag, int bufferpos )
347 /* fixup offset&size for image data */ 347 /* fixup offset&size for image data */
348 entry->albumart.pos += tag - start; 348 entry->albumart.pos += tag - start;
349 entry->albumart.size -= tag - start; 349 entry->albumart.size -= tag - start;
350 entry->embed_albumart = true; 350 entry->has_embedded_albumart = true;
351 } 351 }
352 /* return bufferpos as we didn't store anything in id3v2buf */ 352 /* return bufferpos as we didn't store anything in id3v2buf */
353 return bufferpos; 353 return bufferpos;
@@ -1075,7 +1075,7 @@ void setid3v2title(int fd, struct mp3entry *entry)
1075 1075
1076#ifdef HAVE_ALBUMART 1076#ifdef HAVE_ALBUMART
1077 /* albumart */ 1077 /* albumart */
1078 if ((!entry->embed_albumart) && 1078 if ((!entry->has_embedded_albumart) &&
1079 ((tr->tag_length == 4 && !memcmp( header, "APIC", 4)) || 1079 ((tr->tag_length == 4 && !memcmp( header, "APIC", 4)) ||
1080 (tr->tag_length == 3 && !memcmp( header, "PIC" , 3)))) 1080 (tr->tag_length == 3 && !memcmp( header, "PIC" , 3))))
1081 { 1081 {