Revision: 2073
          http://gtkpod.svn.sourceforge.net/gtkpod/?rev=2073&view=rev
Author:   tmzullinger
Date:     2008-07-30 15:27:34 +0000 (Wed, 30 Jul 2008)

Log Message:
-----------
Rename unk146 to explicit_flag in Itdb_Track now that it's purpose is known

Modified Paths:
--------------
    libgpod/trunk/ChangeLog
    libgpod/trunk/docs/reference/tmpl/track.sgml
    libgpod/trunk/src/itdb.h
    libgpod/trunk/src/itdb_itunesdb.c

Modified: libgpod/trunk/ChangeLog
===================================================================
--- libgpod/trunk/ChangeLog     2008-07-29 21:54:46 UTC (rev 2072)
+++ libgpod/trunk/ChangeLog     2008-07-30 15:27:34 UTC (rev 2073)
@@ -1,3 +1,10 @@
+2008-07-30  Todd Zullinger  <tmzullinger at users.sourceforge.net>
+
+       * docs/reference/tmpl/track.sgml
+         src/itdb.h
+         src/itdb_itunesdb.c: Rename unk146 to explicit_flag in
+         Itdb_Track now that it's purpose is known
+
 2008-07-27  Christophe Fergeau  <[EMAIL PROTECTED]>
 
        * src/itdb_sysinfo_extended_parser.c:

Modified: libgpod/trunk/docs/reference/tmpl/track.sgml
===================================================================
--- libgpod/trunk/docs/reference/tmpl/track.sgml        2008-07-29 21:54:46 UTC 
(rev 2072)
+++ libgpod/trunk/docs/reference/tmpl/track.sgml        2008-07-30 15:27:34 UTC 
(rev 2073)
@@ -91,7 +91,7 @@
 @unk132: 
 @time_released: 
 @unk144: 
[EMAIL PROTECTED]: 
[EMAIL PROTECTED]: 
 @unk148: 
 @unk152: 
 @skipcount: 

Modified: libgpod/trunk/src/itdb.h
===================================================================
--- libgpod/trunk/src/itdb.h    2008-07-29 21:54:46 UTC (rev 2072)
+++ libgpod/trunk/src/itdb.h    2008-07-30 15:27:34 UTC (rev 2073)
@@ -833,8 +833,9 @@
                         files are 0x0029, WAV files are 0x0. itdb
                         will attempt to set this value when adding a
                         track. */ 
-  guint16 unk146;     /* unknown, but appears to be 1 if played at
-                        least once in iTunes and 0 otherwise. */
+  guint16 explicit_flag;/* If this flag is set to 1, the track is shown as
+                          explicit content in iTunes. Otherwise set this flag
+                          to 0.*/
   guint32 unk148;     /* unknown - used for Apple Store DRM songs
                         (always 0x01010100?), zero otherwise */
   guint32 unk152;     /* unknown */

Modified: libgpod/trunk/src/itdb_itunesdb.c
===================================================================
--- libgpod/trunk/src/itdb_itunesdb.c   2008-07-29 21:54:46 UTC (rev 2072)
+++ libgpod/trunk/src/itdb_itunesdb.c   2008-07-30 15:27:34 UTC (rev 2073)
@@ -2309,7 +2309,7 @@
       track->time_released = device_time_mac_to_time_t (fimp->itdb->device,
                                                      track->time_released);
       track->unk144 = get16lint (cts, seek+144);
-      track->unk146 = get16lint (cts, seek+146);
+      track->explicit_flag = get16lint (cts, seek+146);
       track->unk148 = get32lint (cts, seek+148);
       track->unk152 = get32lint (cts, seek+152);
   }
@@ -3607,7 +3607,7 @@
   mac_time = device_time_time_t_to_mac (track->itdb->device, 
track->time_released);
   put32lint (cts, mac_time);
   put16lint (cts, track->unk144);
-  put16lint (cts, track->unk146);
+  put16lint (cts, track->explicit_flag);
   put32lint (cts, track->unk148);
   put32lint (cts, track->unk152);
   /* since iTunesDB version 0x0c */


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
gtkpod-cvs2 mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gtkpod-cvs2

Reply via email to