Update of /cvsroot/gtkpod/libgpod/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10509/src
Modified Files: db-artwork-parser.c Log Message: 2005-11-30 Christophe Fergeau <[EMAIL PROTECTED]> * src/db-artwork-parser.c: (parse_mhni): don't crash if ipod_image_new_from_mhni returns NULL Index: db-artwork-parser.c =================================================================== RCS file: /cvsroot/gtkpod/libgpod/src/db-artwork-parser.c,v retrieving revision 1.9 retrieving revision 1.10 diff -u -d -r1.9 -r1.10 --- db-artwork-parser.c 28 Nov 2005 16:20:40 -0000 1.9 +++ db-artwork-parser.c 30 Nov 2005 19:18:47 -0000 1.10 @@ -158,11 +158,13 @@ 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; ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click _______________________________________________ gtkpod-cvs2 mailing list gtkpod-cvs2@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gtkpod-cvs2