diff options
| author | teuf <teuf@f01d2545-417e-4e96-918e-98f8d0dbbcb6> | 2005-10-17 17:38:10 +0000 |
|---|---|---|
| committer | teuf <teuf@f01d2545-417e-4e96-918e-98f8d0dbbcb6> | 2005-10-17 17:38:10 +0000 |
| commit | b32950fce45aae25102b0afdd50851ef0abbab82 (patch) | |
| tree | c17afbef79b7e58d5531b638c7bac8d71f4d7eb7 /src/db-image-parser.c | |
| parent | 29c60f1b026c95f3134366aebca236c2a43b29b0 (diff) | |
| download | libgpod-b32950fce45aae25102b0afdd50851ef0abbab82.tar.gz libgpod-b32950fce45aae25102b0afdd50851ef0abbab82.tar.xz libgpod-b32950fce45aae25102b0afdd50851ef0abbab82.zip | |
2005-10-17 Christophe Fergeau <teuf@gnome.org>
* src/db-image-parser.c: (get_pixel_data),
(ipod_image_new_from_mhni):
* src/itdb.h:
* src/itdb_itunesdb.c: (get_mhod): Changed type of the various fields
in the ItdbImage structures so that they match what they are in the
database on the iPod.
git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1124 f01d2545-417e-4e96-918e-98f8d0dbbcb6
Diffstat (limited to 'src/db-image-parser.c')
| -rw-r--r-- | src/db-image-parser.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/db-image-parser.c b/src/db-image-parser.c index 2d8e8dc..0240654 100644 --- a/src/db-image-parser.c +++ b/src/db-image-parser.c @@ -83,7 +83,7 @@ get_pixel_data (Itdb_Image *image) res = fseek (f, image->offset, SEEK_SET); if (res != 0) { - g_print ("Seek to %lu failed on %s: %s\n", + g_print ("Seek to %d failed on %s: %s\n", image->offset, image->filename, strerror (errno)); goto end; } @@ -154,8 +154,8 @@ ipod_image_new_from_mhni (MhniHeader *mhni, const char *mount_point) } img->filename = ipod_image_get_ithmb_filename (mount_point, GINT_FROM_LE (mhni->correlation_id)); - img->size = GINT32_FROM_LE (mhni->image_size); - img->offset = GINT32_FROM_LE (mhni->ithmb_offset); + img->size = GUINT32_FROM_LE (mhni->image_size); + img->offset = GUINT32_FROM_LE (mhni->ithmb_offset); img->width = GINT16_FROM_LE (mhni->image_width); img->height = GINT16_FROM_LE (mhni->image_height); |
