diff options
author | Todd Zullinger <tmzullinger@users.sourceforge.net> | 2008-07-30 15:27:34 +0000 |
---|---|---|
committer | Todd Zullinger <tmzullinger@users.sourceforge.net> | 2008-07-30 15:27:34 +0000 |
commit | f2ada31c1a4fa379c1b89a3f8a0c80a8f659b2e5 (patch) | |
tree | 10b0d0acf4de07d6b576d7c5af9cad191db759d1 | |
parent | 3fac8995fffdff1f1375f5b1c2a6233c4f779081 (diff) | |
download | libgpod-f2ada31c1a4fa379c1b89a3f8a0c80a8f659b2e5.tar.gz libgpod-f2ada31c1a4fa379c1b89a3f8a0c80a8f659b2e5.tar.xz libgpod-f2ada31c1a4fa379c1b89a3f8a0c80a8f659b2e5.zip |
Rename unk146 to explicit_flag in Itdb_Track now that it's purpose is known
git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@2073 f01d2545-417e-4e96-918e-98f8d0dbbcb6
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | docs/reference/tmpl/track.sgml | 2 | ||||
-rw-r--r-- | src/itdb.h | 5 | ||||
-rw-r--r-- | src/itdb_itunesdb.c | 4 |
4 files changed, 13 insertions, 5 deletions
@@ -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 <teuf@gnome.org> * src/itdb_sysinfo_extended_parser.c: diff --git a/docs/reference/tmpl/track.sgml b/docs/reference/tmpl/track.sgml index c213f41..2d79481 100644 --- a/docs/reference/tmpl/track.sgml +++ b/docs/reference/tmpl/track.sgml @@ -91,7 +91,7 @@ information about an iPod track. @unk132: @time_released: @unk144: -@unk146: +@explicit_flag: @unk148: @unk152: @skipcount: @@ -833,8 +833,9 @@ struct _Itdb_Track 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 */ diff --git a/src/itdb_itunesdb.c b/src/itdb_itunesdb.c index e8d7e9b..2f45320 100644 --- a/src/itdb_itunesdb.c +++ b/src/itdb_itunesdb.c @@ -2309,7 +2309,7 @@ static glong get_mhit (FImport *fimp, glong mhit_seek) 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 @@ static void mk_mhit (WContents *cts, Itdb_Track *track) 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 */ |