[totem] grilo: Don't warn if the media is gone for a thumbnail



commit 71208d76aea9a49ab78bce2e6fe5005f1050e306
Author: Bastien Nocera <hadess hadess net>
Date:   Wed Jan 29 14:48:18 2014 +0100

    grilo: Don't warn if the media is gone for a thumbnail
    
    When retrieving thumbnails, it's possible that the item
    is already out of view. So don't throw errors in that case.

 src/plugins/grilo/totem-grilo.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/plugins/grilo/totem-grilo.c b/src/plugins/grilo/totem-grilo.c
index d98a6dc..4aeafbf 100644
--- a/src/plugins/grilo/totem-grilo.c
+++ b/src/plugins/grilo/totem-grilo.c
@@ -251,6 +251,8 @@ get_thumbnail_cb (GObject *source_object,
                goto out;
 
        path = gtk_tree_row_reference_get_path (thumb_data->reference);
+       if (!path)
+               goto out;
        gtk_tree_model_get_iter (thumb_data->model, &iter, path);
 
        if (thumbnail == NULL) {


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