[totem] main: Fix possible warnings on startup
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [totem] main: Fix possible warnings on startup
- Date: Sun, 13 Apr 2014 13:07:08 +0000 (UTC)
commit ffefe928c08a9b7d9bf96087a97d930b0e5cc4ce
Author: Bastien Nocera <hadess hadess net>
Date: Fri Apr 11 18:31:49 2014 +0200
main: Fix possible warnings on startup
If a media isn't set in the store, skip the comparisons
src/totem-grilo.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/totem-grilo.c b/src/totem-grilo.c
index 32cacec..88cac19 100644
--- a/src/totem-grilo.c
+++ b/src/totem-grilo.c
@@ -1100,6 +1100,9 @@ find_media_cb (GtkTreeModel *model,
gtk_tree_model_get (model, iter,
MODEL_RESULTS_CONTENT, &media,
-1);
+ if (!media)
+ return FALSE;
+
if (g_strcmp0 (grl_media_get_id (media), grl_media_get_id (data->media)) == 0) {
g_object_unref (media);
data->found = TRUE;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]