More correct content type handling

svn path=/trunk/; revision=20897
This commit is contained in:
Matthias Clasen
2008-07-23 04:20:15 +00:00
parent 7551360c1e
commit 830a9d2710
4 changed files with 18 additions and 2 deletions

View File

@ -1044,8 +1044,10 @@ int
main (int argc, char **argv)
{
char *content_type;
char *image_png;
content_type = g_content_type_guess (NULL, data, data_size, NULL);
return !!strcmp (content_type, "image/png");
image_png = g_content_type_for_mime_type ("image/png");
return !!strcmp (content_type, image_png);
}]])],
[gio_can_sniff=yes
AC_DEFINE(GDK_PIXBUF_USE_GIO_MIME, 1, [Define if gio can sniff image data])],