From 7cbdc298e4482d107cdd3c473344d881ed6093ff Mon Sep 17 00:00:00 2001 From: Jorg Schuler Date: Sat, 4 Feb 2006 03:07:04 +0000 Subject: * 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 --- ChangeLog | 8 +++++++- src/itdb_itunesdb.c | 4 ++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 599004d..8ecb556 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,4 +1,10 @@ -2005-01-03 Jorg Schuler +2005-02-03 Jorg Schuler + + * 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 * 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 | 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, -- cgit