[totem/wip/hadess/thumbnails] grilo: Add debug when thumbnailing media fails




commit 460c28d3feb501c3bf4b60459af91d4cbf9ff8a2
Author: Bastien Nocera <hadess hadess net>
Date:   Wed Aug 26 15:53:53 2020 +0200

    grilo: Add debug when thumbnailing media fails
    
    Could be for any reason, and it's really useful to know.

 src/totem-grilo.c | 6 ++++++
 1 file changed, 6 insertions(+)
---
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;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]