diff options
author | Jorg Schuler <jcsjcs@users.sourceforge.net> | 2006-02-04 03:07:04 +0000 |
---|---|---|
committer | Jorg Schuler <jcsjcs@users.sourceforge.net> | 2006-02-04 03:07:04 +0000 |
commit | 7cbdc298e4482d107cdd3c473344d881ed6093ff (patch) | |
tree | 9c3bf621e298346bd25adb96a3baf9757bc46ed9 | |
parent | f9fde30532d89f85d88de0c294519bf636dc5a4c (diff) | |
download | libgpod-7cbdc298e4482d107cdd3c473344d881ed6093ff.tar.gz libgpod-7cbdc298e4482d107cdd3c473344d881ed6093ff.tar.xz libgpod-7cbdc298e4482d107cdd3c473344d881ed6093ff.zip |
* src/itdb_itunesdb.c: (itunesstats_read) Fixed error when reading
the Shuffle's stat file (0x18 was used as minimal record length
instead of decimal '18').
git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1202 f01d2545-417e-4e96-918e-98f8d0dbbcb6
-rw-r--r-- | ChangeLog | 8 | ||||
-rw-r--r-- | src/itdb_itunesdb.c | 4 |
2 files changed, 9 insertions, 3 deletions
@@ -1,4 +1,10 @@ -2005-01-03 Jorg Schuler <jcsjcs at users.sourceforge.net> +2005-02-03 Jorg Schuler <jcsjcs at users.sourceforge.net> + + * src/itdb_itunesdb.c: (itunesstats_read) Fixed error when reading + the Shuffle's stat file (0x18 was used as minimal record length + instead of decimal '18'). + +2005-02-03 Jorg Schuler <jcsjcs at users.sourceforge.net> * src/itdb_itunesdb.c, src/itdb_playlist.c, src/ithumb-writer.c: removed nested-functions. Thanks to Brian Jackson for the patch diff --git a/src/itdb_itunesdb.c b/src/itdb_itunesdb.c index 3e1388d..2a2c133 100644 --- a/src/itdb_itunesdb.c +++ b/src/itdb_itunesdb.c @@ -1,4 +1,4 @@ -/* Time-stamp: <2005-12-11 16:27:34 jcs> +/* Time-stamp: <2006-02-04 12:04:25 jcs> | | Copyright (C) 2002-2005 Jorg Schuler <jcsjcs at users sourceforge net> | Part of the gtkpod project. @@ -701,7 +701,7 @@ static gboolean itunesstats_read (FImport *fimp, FContents *cts) struct playcount *playcount = g_new0 (struct playcount, 1); guint32 entry_length = get24lint (cts, seek+0); CHECK_ERROR (fimp, FALSE); - if (entry_length < 0x18) + if (entry_length < 18) { g_set_error (&fimp->error, ITDB_FILE_ERROR, |