commit 452f81f4286e27b78b31f8db23e8fd38c9d64278
Author: Adam Broschinski <[email protected]>
Date: Sat Jun 5 14:37:11 2010 -0400
Corrects writes of the second playlist count field
Causes the second playlist count field in hphs to be written
to only when needed.
src/itdb_itunesdb.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/itdb_itunesdb.c b/src/itdb_itunesdb.c
index 5a324f9..1dd5a98 100644
--- a/src/itdb_itunesdb.c
+++ b/src/itdb_itunesdb.c
@@ -6465,7 +6465,8 @@ static gboolean write_hphs (FExport *fexp)
}
/* Is there at least 1 podcast playlist? If so correct the
first 0xffff from before */
- put16lint_seek (cts, playlistcnt-podcastscnt, hphs_seek+12);
+ if (podcastscnt != 0)
+ put16lint_seek (cts, playlistcnt-podcastscnt, hphs_seek+12);
return TRUE;
}
------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
gtkpod-cvs2 mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gtkpod-cvs2