summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--src/db-artwork-writer.c6
2 files changed, 9 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index ee354d0..2422edc 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
2007-10-24 Christophe Fergeau <teuf@gnome.org>
+ * src/db-artwork-writer.c: (write_mhla): yet another missing endianness
+ conversion
+
+2007-10-24 Christophe Fergeau <teuf@gnome.org>
+
Patch from Filippo Giunchedi <filippo@esaurito.net>
* src/db-artwork-parser.c: (parse_mhba): another missing endianness
diff --git a/src/db-artwork-writer.c b/src/db-artwork-writer.c
index 240617b..9f5c8a8 100644
--- a/src/db-artwork-writer.c
+++ b/src/db-artwork-writer.c
@@ -769,7 +769,7 @@ write_mhla (Itdb_DB *db, iPodBuffer *buffer)
total_bytes = get_gint32 (mhla->header_len, buffer->byte_order);
if (buffer->db_type == DB_TYPE_PHOTO) {
unsigned int bytes_written;
-
+ unsigned int num_children = 0;
for (it = db_get_photodb(db)->photoalbums; it != NULL; it = it->next) {
Itdb_PhotoAlbum *album = (Itdb_PhotoAlbum *)it->data;
@@ -783,7 +783,9 @@ write_mhla (Itdb_DB *db, iPodBuffer *buffer)
return -1;
}
total_bytes += bytes_written;
- mhla->num_children++;
+ num_children++;
+ mhla->num_children = get_gint32 (num_children,
+ buffer->byte_order);
}
}