Update of /cvsroot/gtkpod/libgpod/src
In directory sc8-pr-cvs2.sourceforge.net:/tmp/cvs-serv29266/src
Modified Files:
itdb.h itdb_itunesdb.c
Log Message:
* src/itdb.h
src/itdb_itunesdb.c: removed mhodcount and libmhodcount from
Itdb_Playlist as these are only used internally and reset during
syncing.
Index: itdb.h
===================================================================
RCS file: /cvsroot/gtkpod/libgpod/src/itdb.h,v
retrieving revision 1.51
retrieving revision 1.52
diff -u -d -r1.51 -r1.52
--- itdb.h 24 Nov 2006 04:03:47 -0000 1.51
+++ itdb.h 26 Nov 2006 15:00:15 -0000 1.52
@@ -1,4 +1,4 @@
-/* Time-stamp: <2006-11-24 12:57:54 jcs>
+/* Time-stamp: <2006-11-24 20:51:44 jcs>
|
| Copyright (C) 2002-2006 Jorg Schuler <jcsjcs at users sourceforge net>
| Part of the gtkpod project.
@@ -545,24 +545,8 @@
gint num; /* number of tracks in playlist */
GList *members; /* tracks in playlist (Track *) */
gboolean is_spl; /* smart playlist? */
- guint32 timestamp; /* some timestamp */
+ guint32 timestamp; /* timestamp of playlist creation */
guint64 id; /* playlist ID */
- guint32 mhodcount; /* This appears to be the number of string
- MHODs (type < 50) associated with this
- playlist (typically 0x01). Doesn't seem
- to be signficant unless you include Type
- 52 MHODs. libgpod sets this to 1 when
- syncing */
- guint16 libmhodcount; /* The number of Type 52 MHODs associated
- with this playlist. If you don't create
- Type 52 MHODs, this can be
- zero. Otherwise, if you have Type 52
- MHODs associated with this playlist and
- set this to zero, no songs appear on the
- iPod. jcsjcs: with iTunes 4.9 this seems
- to be set to 1 even without any Type 52
- MHODs present. libgpod sets this to 1
- when syncing */
guint32 sortorder; /* How to sort playlist -- see below */
guint32 podcastflag; /* ITDB_PL_FLAG_NORM/_PODCAST */
SPLPref splpref; /* smart playlist prefs */
Index: itdb_itunesdb.c
===================================================================
RCS file: /cvsroot/gtkpod/libgpod/src/itdb_itunesdb.c,v
retrieving revision 1.69
retrieving revision 1.70
diff -u -d -r1.69 -r1.70
--- itdb_itunesdb.c 7 Nov 2006 12:08:18 -0000 1.69
+++ itdb_itunesdb.c 26 Nov 2006 15:00:15 -0000 1.70
@@ -1,4 +1,4 @@
-/* Time-stamp: <2006-11-07 20:53:26 jcs>
+/* Time-stamp: <2006-11-24 20:50:01 jcs>
|
| Copyright (C) 2002-2005 Jorg Schuler <jcsjcs at users sourceforge net>
| Part of the gtkpod project.
@@ -1873,8 +1873,8 @@
plitem->flag3 = get8int (cts, mhyp_seek+23);
plitem->timestamp = get32lint (cts, mhyp_seek+24);
plitem->id = get64lint (cts, mhyp_seek+28);
- plitem->mhodcount = get32lint (cts, mhyp_seek+36);
- plitem->libmhodcount = get16lint (cts, mhyp_seek+40);
+/* plitem->mhodcount = get32lint (cts, mhyp_seek+36); */
+/* plitem->libmhodcount = get16lint (cts, mhyp_seek+40);*/
plitem->podcastflag = get16lint (cts, mhyp_seek+42);
plitem->sortorder = get32lint (cts, mhyp_seek+44);
@@ -3993,11 +3993,11 @@
put8int (cts, pl->flag3); /* unknown */
put32lint (cts, pl->timestamp);/* some timestamp */
put64lint (cts, pl->id); /* 64 bit ID */
- pl->mhodcount = 1; /* we only write one mhod type < 50 */
- put32lint (cts, pl->mhodcount);
- pl->libmhodcount = 1; /* we don't write mhod type 52, and
- "1" seems to be the default */
- put16lint (cts, pl->libmhodcount);
+ put32lint (cts, 1); /* mhodcount: we only write
+ * one mhod type < 50 */
+ put16lint (cts, 1); /* libmhodcount: we don't write
+ mhod type 52, and "1" seems to
+ be the default */
put16lint (cts, pl->podcastflag);
put32lint (cts, pl->sortorder);
put32_n0 (cts, 15); /* ? */
-------------------------------------------------------------------------
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