Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/thumbnailer
diff options
context:
space:
mode:
Diffstat (limited to 'thumbnailer')
-rw-r--r--thumbnailer/evince-thumbnailer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/thumbnailer/evince-thumbnailer.c b/thumbnailer/evince-thumbnailer.c
index dfa521b..c4a02cb 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);