summaryrefslogtreecommitdiff
path: root/tumbler
diff options
context:
space:
mode:
authorNick Schermer <nick@xfce.org>2013-05-04 16:53:26 +0200
committerNick Schermer <nick@xfce.org>2013-05-04 16:53:26 +0200
commita9c038264712a58b38981bdb0aa2d0a672017b18 (patch)
treed2bd1074ca42fd7358974f0099ae3dc2f741bef5 /tumbler
parentbd98846ce8b5b318004a8cac4fbcff23efb59865 (diff)
downloadtumbler-a9c038264712a58b38981bdb0aa2d0a672017b18.tar.gz
Add some additional debug checks.
Diffstat (limited to 'tumbler')
-rw-r--r--tumbler/tumbler-thumbnailer.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/tumbler/tumbler-thumbnailer.c b/tumbler/tumbler-thumbnailer.c
index 14e2b71..213c8c5 100644
--- a/tumbler/tumbler-thumbnailer.c
+++ b/tumbler/tumbler-thumbnailer.c
@@ -245,6 +245,9 @@ tumbler_thumbnailer_supports_location (TumblerThumbnailer *thumbnailer,
GSList *locations, *lp;
gboolean supported = FALSE;
+ g_return_val_if_fail (TUMBLER_IS_THUMBNAILER (thumbnailer), FALSE);
+ g_return_val_if_fail (G_IS_FILE (file), FALSE);
+
/* we're cool if no locations are set */
g_object_get (thumbnailer, "locations", &locations, NULL);
if (locations == NULL)