Revision: 1735
          http://gtkpod.svn.sourceforge.net/gtkpod/?rev=1735&view=rev
Author:   teuf
Date:     2007-10-24 12:44:07 -0700 (Wed, 24 Oct 2007)

Log Message:
-----------
* src/db-artwork-writer.c: (write_mhla): yet another missing endianness
conversion

Modified Paths:
--------------
    libgpod/trunk/ChangeLog
    libgpod/trunk/src/db-artwork-writer.c

Modified: libgpod/trunk/ChangeLog
===================================================================
--- libgpod/trunk/ChangeLog     2007-10-24 18:28:03 UTC (rev 1734)
+++ libgpod/trunk/ChangeLog     2007-10-24 19:44:07 UTC (rev 1735)
@@ -1,5 +1,10 @@
 2007-10-24  Christophe Fergeau  <[EMAIL PROTECTED]>
 
+       * src/db-artwork-writer.c: (write_mhla): yet another missing endianness
+       conversion
+
+2007-10-24  Christophe Fergeau  <[EMAIL PROTECTED]>
+
        Patch from Filippo Giunchedi <[EMAIL PROTECTED]>
 
        * src/db-artwork-parser.c: (parse_mhba): another missing endianness

Modified: libgpod/trunk/src/db-artwork-writer.c
===================================================================
--- libgpod/trunk/src/db-artwork-writer.c       2007-10-24 18:28:03 UTC (rev 
1734)
+++ libgpod/trunk/src/db-artwork-writer.c       2007-10-24 19:44:07 UTC (rev 
1735)
@@ -769,7 +769,7 @@
        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 @@
                    return -1;
                }
                total_bytes += bytes_written;
-               mhla->num_children++;
+               num_children++;
+               mhla->num_children = get_gint32 (num_children,
+                                                 buffer->byte_order);
            }
        }
 


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
gtkpod-cvs2 mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gtkpod-cvs2

Reply via email to