summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2020-08-26 15:53:53 +0200
committerBastien Nocera <hadess@hadess.net>2020-08-26 15:53:53 +0200
commit460c28d3feb501c3bf4b60459af91d4cbf9ff8a2 (patch)
tree326aa514b925d6f60d311665725604af6a41216b /src
parent0a9cb551d412b1885afed978b11863c6e8077d40 (diff)
downloadtotem-460c28d3feb501c3bf4b60459af91d4cbf9ff8a2.tar.gz
grilo: Add debug when thumbnailing media fails
Could be for any reason, and it's really useful to know.
Diffstat (limited to 'src')
-rw-r--r--src/totem-grilo.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/totem-grilo.c b/src/totem-grilo.c
index 805d849e2..7987d89d5 100644
--- a/src/totem-grilo.c
+++ b/src/totem-grilo.c
@@ -378,6 +378,12 @@ get_thumbnail_cb (GObject *source_object,
if (g_error_matches (error, G_IO_ERROR, G_IO_ERROR_CANCELLED))
goto out;
+ if (!thumbnail && GRL_IS_MEDIA (thumb_data->media)) {
+ g_debug ("Failed to get thumbnail for '%s': %s",
+ grl_media_get_url (thumb_data->media),
+ error->message);
+ }
+
path = gtk_tree_row_reference_get_path (thumb_data->reference);
if (!path)
goto out;