X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=blobdiff_plain;f=thumbnailer%2Fevince-thumbnailer.c;h=c4a02cb6b7193c31374a6c03fae05e520265a9d8;hb=bbc6a0f5736ed843754902eb9a829dd5e173e1ac;hp=dfa521bea4e931ad1936cb50ab1f752294112ad0;hpb=a5e3f1314e7e27fb0e765b3b9b8e1deb92c7c536;p=evince.git diff --git a/thumbnailer/evince-thumbnailer.c b/thumbnailer/evince-thumbnailer.c index dfa521be..c4a02cb6 100644 --- a/thumbnailer/evince-thumbnailer.c +++ b/thumbnailer/evince-thumbnailer.c @@ -38,8 +38,8 @@ evince_thumbnail_pngenc_get (const char *uri, const char *thumbnail, int size) GType document_type; char *mime_type = NULL; - document_type = ev_document_type_lookup (uri, &mime_type); - if (document_type == G_TYPE_INVALID) + document_type = ev_document_type_lookup (uri, &mime_type, &error); + if (document_type == G_TYPE_INVALID || error != NULL) return FALSE; document = g_object_new (document_type, NULL);