summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorteuf <teuf@f01d2545-417e-4e96-918e-98f8d0dbbcb6>2007-10-24 19:44:07 +0000
committerteuf <teuf@f01d2545-417e-4e96-918e-98f8d0dbbcb6>2007-10-24 19:44:07 +0000
commit4c1d124b2f9df1ed6a297ebc317a07b07e6e2b8b (patch)
treea1c1b11e7c5d6035c800cbf0c5177c98c0e0eb72 /src
parent74ddc393a454d420346e9af67370fff71f108c2a (diff)
downloadlibgpod-4c1d124b2f9df1ed6a297ebc317a07b07e6e2b8b.tar.gz
libgpod-4c1d124b2f9df1ed6a297ebc317a07b07e6e2b8b.tar.xz
libgpod-4c1d124b2f9df1ed6a297ebc317a07b07e6e2b8b.zip
* src/db-artwork-writer.c: (write_mhla): yet another missing endianness
conversion git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1735 f01d2545-417e-4e96-918e-98f8d0dbbcb6
Diffstat (limited to 'src')
-rw-r--r--src/db-artwork-writer.c6
1 files changed, 4 insertions, 2 deletions
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);
}
}