Rename 'mp3entry.embed_albumart' to 'mp3entry.has_embedded_albumart' (FS#12470). No functional changes.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31405 a1c6a512-1295-4272-9138-f99709370657
diff --git a/apps/hosted/android/notification.c b/apps/hosted/android/notification.c
index 4432006..2c814b0 100644
--- a/apps/hosted/android/notification.c
+++ b/apps/hosted/android/notification.c
@@ -68,7 +68,7 @@
album = e->NewStringUTF(env_ptr, id3->album ?: "");
albumart = NULL;
- if (id3->embed_albumart && id3->albumart.type == AA_TYPE_JPG)
+ if (id3->has_embedded_albumart && id3->albumart.type == AA_TYPE_JPG)
{ /* extract albumart to a temporary file using mmap() */
snprintf(buf, sizeof(buf), "/sdcard/rockbox/.temp_albumart_%d.jpg",
thread_self());
diff --git a/apps/metadata.h b/apps/metadata.h
index a773008..707e5c2 100644
--- a/apps/metadata.h
+++ b/apps/metadata.h
@@ -317,7 +317,7 @@
#endif
#ifdef HAVE_ALBUMART
- bool embed_albumart;
+ bool has_embedded_albumart;
struct mp3_albumart albumart;
#endif
diff --git a/apps/metadata/ape.c b/apps/metadata/ape.c
index 8fe296c..0bd2477 100644
--- a/apps/metadata/ape.c
+++ b/apps/metadata/ape.c
@@ -159,7 +159,7 @@
{
id3->albumart.pos = lseek(fd, 0, SEEK_CUR);
id3->albumart.size = item.length - r;
- id3->embed_albumart = true;
+ id3->has_embedded_albumart = true;
}
/* Seek back to this APE items begin. */
diff --git a/apps/metadata/asf.c b/apps/metadata/asf.c
index f5532fa..b815c09 100644
--- a/apps/metadata/asf.c
+++ b/apps/metadata/asf.c
@@ -503,7 +503,7 @@
if (id3->albumart.type != AA_TYPE_UNKNOWN) {
id3->albumart.pos = lseek(fd, 0, SEEK_CUR);
id3->albumart.size = datalength;
- id3->embed_albumart = true;
+ id3->has_embedded_albumart = true;
}
}
diff --git a/apps/metadata/id3tags.c b/apps/metadata/id3tags.c
index dcb8034..85025c6 100644
--- a/apps/metadata/id3tags.c
+++ b/apps/metadata/id3tags.c
@@ -301,7 +301,7 @@
/* parse embed albumart */
static int parsealbumart( struct mp3entry* entry, char* tag, int bufferpos )
{
- entry->embed_albumart = false;
+ entry->has_embedded_albumart = false;
/* we currently don't support unsynchronizing albumart */
if (entry->albumart.type == AA_TYPE_UNSYNC)
@@ -347,7 +347,7 @@
/* fixup offset&size for image data */
entry->albumart.pos += tag - start;
entry->albumart.size -= tag - start;
- entry->embed_albumart = true;
+ entry->has_embedded_albumart = true;
}
/* return bufferpos as we didn't store anything in id3v2buf */
return bufferpos;
@@ -1075,7 +1075,7 @@
#ifdef HAVE_ALBUMART
/* albumart */
- if ((!entry->embed_albumart) &&
+ if ((!entry->has_embedded_albumart) &&
((tr->tag_length == 4 && !memcmp( header, "APIC", 4)) ||
(tr->tag_length == 3 && !memcmp( header, "PIC" , 3))))
{
diff --git a/apps/metadata/mp4.c b/apps/metadata/mp4.c
index 4feb56c..df16443 100644
--- a/apps/metadata/mp4.c
+++ b/apps/metadata/mp4.c
@@ -487,7 +487,7 @@
{
id3->albumart.pos = pos;
id3->albumart.size = size - 16;
- id3->embed_albumart = true;
+ id3->has_embedded_albumart = true;
}
}
break;
diff --git a/apps/playback.c b/apps/playback.c
index 36fbd88..8fe43eb 100644
--- a/apps/playback.c
+++ b/apps/playback.c
@@ -1559,7 +1559,7 @@
#endif
/* We can only decode jpeg for embedded AA */
- if (track_id3->embed_albumart && track_id3->albumart.type == AA_TYPE_JPG)
+ if (track_id3->has_embedded_albumart && track_id3->albumart.type == AA_TYPE_JPG)
{
user_data.embedded_albumart = &track_id3->albumart;
hid = bufopen(track_id3->path, 0, TYPE_BITMAP, &user_data);