Update of /cvsroot/gtkpod/libgpod/src
In directory sc8-pr-cvs2.sourceforge.net:/tmp/cvs-serv4027/src

Modified Files:
        db-itunes-parser.h db-artwork-writer.c 
Log Message:
        * src/db-itunes-parser.h
          src/artwork-writer.c: Set unknown2 of mhfd header to 2 instead
          of 1, otherwise iTunes7 wipes the ArtworkDB.



Index: db-itunes-parser.h
===================================================================
RCS file: /cvsroot/gtkpod/libgpod/src/db-itunes-parser.h,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -d -r1.9 -r1.10
--- db-itunes-parser.h  11 Nov 2006 13:44:29 -0000      1.9
+++ db-itunes-parser.h  24 Feb 2007 12:38:38 -0000      1.10
@@ -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 @@
        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;

Index: db-artwork-writer.c
===================================================================
RCS file: /cvsroot/gtkpod/libgpod/src/db-artwork-writer.c,v
retrieving revision 1.25
retrieving revision 1.26
diff -u -d -r1.25 -r1.26
--- db-artwork-writer.c 11 Nov 2006 13:44:29 -0000      1.25
+++ db-artwork-writer.c 24 Feb 2007 12:38:38 -0000      1.26
@@ -957,7 +957,7 @@
                mhfd->unknown2 = get_gint32 (2, buffer->byte_order);
                break;
        case DB_TYPE_ITUNES:
-               mhfd->unknown2 = get_gint32 (1, buffer->byte_order);
+               mhfd->unknown2 = get_gint32 (2, buffer->byte_order);
                break;
        }
        mhfd->next_id = get_gint32 (id_max, buffer->byte_order);


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
gtkpod-cvs2 mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gtkpod-cvs2

Reply via email to