summaryrefslogtreecommitdiffstats
path: root/src/db-itunes-parser.h
diff options
context:
space:
mode:
authorJorg Schuler <jcsjcs@users.sourceforge.net>2007-02-24 12:38:38 +0000
committerJorg Schuler <jcsjcs@users.sourceforge.net>2007-02-24 12:38:38 +0000
commite5d9b824373f52cbff1227f39899ca8c083191aa (patch)
tree7b8aec1f921fe1c8b0c225d07e875b995e16e74a /src/db-itunes-parser.h
parent973083664363fd1b366fc54346192b1ff03a7f60 (diff)
downloadlibgpod-e5d9b824373f52cbff1227f39899ca8c083191aa.tar.gz
libgpod-e5d9b824373f52cbff1227f39899ca8c083191aa.tar.xz
libgpod-e5d9b824373f52cbff1227f39899ca8c083191aa.zip
* src/db-itunes-parser.h
src/artwork-writer.c: Set unknown2 of mhfd header to 2 instead of 1, otherwise iTunes7 wipes the ArtworkDB. git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1395 f01d2545-417e-4e96-918e-98f8d0dbbcb6
Diffstat (limited to 'src/db-itunes-parser.h')
-rw-r--r--src/db-itunes-parser.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/db-itunes-parser.h b/src/db-itunes-parser.h
index 39fab2f..f32b452 100644
--- a/src/db-itunes-parser.h
+++ b/src/db-itunes-parser.h
@@ -1,4 +1,4 @@
-/* Time-stamp: <2006-11-11 20:38:32 jcs>
+/* Time-stamp: <2007-02-24 21:36:04 jcs>
*
* Copyright (C) 2005 Christophe Fergeau
*
@@ -543,7 +543,10 @@ struct _MhfdHeader {
gint32 header_len;
gint32 total_len;
gint32 unknown1;
- gint32 unknown2;
+ gint32 unknown2; /* always seem to be 1 for older databases,
+ in an ArtworkDB generated by iTunes 4.9 or
+ above, it's 2. Caution: iTunes7 removes
+ the whole database if this field is 1 */
gint32 num_children;
gint32 unknown3;
gint32 next_id;