diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/db-artwork-parser.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/db-artwork-parser.c b/src/db-artwork-parser.c index fe88b7e..6796bbe 100644 --- a/src/db-artwork-parser.c +++ b/src/db-artwork-parser.c @@ -158,11 +158,13 @@ parse_mhni (DBParseContext *ctx, iPodSong *song, GError *error) dump_mhni (mhni); thumb = ipod_image_new_from_mhni (mhni, song->itdb); - if (thumb != NULL) { - song->artwork->thumbnails = - g_list_append (song->artwork->thumbnails, thumb); + if (thumb == NULL) { + return 0; } + song->artwork->thumbnails = + g_list_append (song->artwork->thumbnails, thumb); + mhod_ctx = db_parse_context_get_sub_context (ctx, ctx->header_len); if (mhod_ctx == NULL) { return -1; |