summaryrefslogtreecommitdiffstats
path: root/src/db-artwork-parser.c
diff options
context:
space:
mode:
authorJorg Schuler <jcsjcs@users.sourceforge.net>2006-06-01 13:31:11 +0000
committerJorg Schuler <jcsjcs@users.sourceforge.net>2006-06-01 13:31:11 +0000
commit1caaeade460f1e6e3226c8f0606be2f1f3b9b102 (patch)
treefaa665d85b87f05dbf508f8450349be41dba8ee9 /src/db-artwork-parser.c
parentf1cb3021ff07ec367136c0dc6c8d9fd3a8f78fb7 (diff)
downloadlibgpod-tmz-1caaeade460f1e6e3226c8f0606be2f1f3b9b102.tar.gz
libgpod-tmz-1caaeade460f1e6e3226c8f0606be2f1f3b9b102.tar.xz
libgpod-tmz-1caaeade460f1e6e3226c8f0606be2f1f3b9b102.zip
* src/db-artwork-writer.c (write_mhni): fix segfault caused by
wrong access of enum inside Itdb_DB git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1295 f01d2545-417e-4e96-918e-98f8d0dbbcb6
Diffstat (limited to 'src/db-artwork-parser.c')
-rw-r--r--src/db-artwork-parser.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/db-artwork-parser.c b/src/db-artwork-parser.c
index df80305..52de373 100644
--- a/src/db-artwork-parser.c
+++ b/src/db-artwork-parser.c
@@ -335,7 +335,7 @@ parse_mhii (DBParseContext *ctx, GError *error)
g_free (mhod_ctx);
mhod_ctx = db_parse_context_get_sub_context (ctx, cur_offset);
}
- ctx->db->db.photodb->photos = g_list_append (ctx->db->db.photodb->photos, artwork);
+ ctx->db->db.photodb->photos = g_list_append (ctx->db->db.photodb->photos, artwork);
break;
case DB_TYPE_ITUNES:
#ifdef NOT_DEFINED_DEBUG_ARTWORKDB
@@ -387,7 +387,7 @@ parse_mhba (DBParseContext *ctx, GError *error)
dump_mhba (mhba);
- photo_album = g_new0 (Itdb_PhotoAlbum, 1);
+ photo_album = g_new0 (Itdb_PhotoAlbum, 1);
photo_album->num_images = get_gint32( mhba->num_mhias, ctx->byte_order);
photo_album->album_id = get_gint32( mhba->playlist_id, ctx->byte_order);
photo_album->master = get_gint32( mhba->master, ctx->byte_order);
@@ -419,7 +419,7 @@ parse_mhba (DBParseContext *ctx, GError *error)
g_free (mhia_ctx);
mhia_ctx = db_parse_context_get_sub_context (ctx, cur_offset);
}
- ctx->db->db.photodb->photoalbums = g_list_append (ctx->db->db.photodb->photoalbums, photo_album);
+ ctx->db->db.photodb->photoalbums = g_list_append (ctx->db->db.photodb->photoalbums, photo_album);
return 0;
}