[totem] grilo: Ensure that media is initialised
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [totem] grilo: Ensure that media is initialised
- Date: Tue, 14 Jan 2014 19:21:01 +0000 (UTC)
commit 9b3c941e566c1b7edd4adf92f332bf74b09f1977
Author: Bastien Nocera <hadess hadess net>
Date: Tue Jan 14 17:09:38 2014 +0100
grilo: Ensure that media is initialised
src/plugins/grilo/totem-grilo.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/plugins/grilo/totem-grilo.c b/src/plugins/grilo/totem-grilo.c
index 00eadfe..0ed456f 100644
--- a/src/plugins/grilo/totem-grilo.c
+++ b/src/plugins/grilo/totem-grilo.c
@@ -277,7 +277,6 @@ update_search_thumbnails_idle (TotemGriloPlugin *self)
{
GtkTreePath *start_path;
GtkTreePath *end_path;
- GrlMedia *media;
gboolean is_prethumbnail = FALSE;
GtkTreeModel *view_model, *model;
GtkIconView *icon_view;
@@ -298,6 +297,7 @@ update_search_thumbnails_idle (TotemGriloPlugin *self)
gtk_tree_path_next (start_path)) {
GtkTreePath *path;
GtkTreeIter iter;
+ GrlMedia *media;
if (GTK_IS_TREE_MODEL_FILTER (view_model)) {
path = gtk_tree_model_filter_convert_path_to_child_path (GTK_TREE_MODEL_FILTER
(view_model),
@@ -311,6 +311,7 @@ update_search_thumbnails_idle (TotemGriloPlugin *self)
break;
}
+ media = NULL;
gtk_tree_model_get (model,
&iter,
MODEL_RESULTS_CONTENT, &media,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]