summaryrefslogtreecommitdiffstats
path: root/src/db-artwork-writer.c
diff options
context:
space:
mode:
authorJorg Schuler <jcsjcs@users.sourceforge.net>2005-12-04 07:01:27 +0000
committerJorg Schuler <jcsjcs@users.sourceforge.net>2005-12-04 07:01:27 +0000
commit71fd00dbd582621cc7b4f5c90a33f90ac77e835d (patch)
tree7cf080c719cfd11a02b5b722d766f654813fd768 /src/db-artwork-writer.c
parentfbb4c8342388449e4efbab4506cc6c96bd3be6f9 (diff)
downloadlibgpod-tmz-71fd00dbd582621cc7b4f5c90a33f90ac77e835d.tar.gz
libgpod-tmz-71fd00dbd582621cc7b4f5c90a33f90ac77e835d.tar.xz
libgpod-tmz-71fd00dbd582621cc7b4f5c90a33f90ac77e835d.zip
* src/db-artwork-writer.c, src/itdb_itunesdb.c,
src/itdb_track.c, src/ithumb-writer.c: handle artwork size and count self-consistently. git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1184 f01d2545-417e-4e96-918e-98f8d0dbbcb6
Diffstat (limited to 'src/db-artwork-writer.c')
-rw-r--r--src/db-artwork-writer.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/db-artwork-writer.c b/src/db-artwork-writer.c
index 7159885..4c728e8 100644
--- a/src/db-artwork-writer.c
+++ b/src/db-artwork-writer.c
@@ -435,11 +435,7 @@ write_mhii (Itdb_Track *song, iPodBuffer *buffer)
total_bytes = GINT_FROM_LE (mhii->header_len);
mhii->song_id = GINT64_TO_LE (song->dbid);
mhii->image_id = GUINT_TO_LE (song->artwork->id);
- /* Adding 1 to artwork_size since this is what iTunes 4.9 does (there
- * is a 1 difference between the artwork size in iTunesDB and the
- * artwork size in ArtworkDB)
- */
- mhii->orig_img_size = GINT_TO_LE (song->artwork_size)+1;
+ mhii->orig_img_size = GINT_TO_LE (song->artwork->artwork_size);
num_children = 0;
for (it = song->artwork->thumbnails; it != NULL; it = it->next) {
iPodBuffer *sub_buffer;