]> www.fi.muni.cz Git - evince.git/blobdiff - thumbnailer/evince-thumbnailer.c
Transfer remote documents to tmp directory to display them later
[evince.git] / thumbnailer / evince-thumbnailer.c
index dfa521bea4e931ad1936cb50ab1f752294112ad0..c4a02cb6b7193c31374a6c03fae05e520265a9d8 100644 (file)
@@ -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);