--- src/picture.c 2013-02-10 16:54:01.000000000 +0000 +++ src/picture.c_PATCHED 2013-03-14 11:00:38.986897931 +0000 @@ -207,8 +207,8 @@ // Other tag types default: { - // By default, set the filename in the description - pic->description = g_path_get_basename(filename_utf8); + /* By default, set the description to the empty string. */ + pic->description = g_strdup (""); // Try to identify the type of the picture from the file name filename_utf8_folded = g_utf8_casefold(pic->description, -1); @@ -227,6 +227,8 @@ pic->type = PICTURE_TYPE_LEAFLET_PAGE; //else if ( strstr(filename_utf8_folded, inlay_folded) != NULL ) // pic->type = PICTURE_TYPE_LEAFLET_PAGE; + else + pic->type = PICTURE_TYPE_FRONT_COVER; break; }