[grilo-plugins/0.2.x: 15/30] opensubtitles: Fix warnings running gnome-music
- From: Juan A. Suarez Romero <jasuarez src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [grilo-plugins/0.2.x: 15/30] opensubtitles: Fix warnings running gnome-music
- Date: Mon, 7 Sep 2015 12:26:33 +0000 (UTC)
commit 47ba2b96045205024b26595f03b6d953917c7991
Author: Bastien Nocera <hadess hadess net>
Date: Wed Sep 2 14:40:25 2015 +0200
opensubtitles: Fix warnings running gnome-music
When running gnome-music, grl_source_query() will call
expand_operation_keys() to try and find which sources could help add
metadata.
https://bugzilla.gnome.org/show_bug.cgi?id=754451
src/opensubtitles/grl-opensubtitles.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/opensubtitles/grl-opensubtitles.c b/src/opensubtitles/grl-opensubtitles.c
index 1009128..6237d7e 100644
--- a/src/opensubtitles/grl-opensubtitles.c
+++ b/src/opensubtitles/grl-opensubtitles.c
@@ -558,9 +558,9 @@ grl_opensubtitles_source_may_resolve (GrlSource *source,
!grl_data_has_key (GRL_DATA (media), GRL_METADATA_KEY_SIZE)) {
if (missing_keys) {
GList *keys = NULL;
- if (!grl_data_has_key (GRL_DATA (media), priv->hash_keyid))
+ if (!media || !grl_data_has_key (GRL_DATA (media), priv->hash_keyid))
keys = g_list_prepend (keys, GRLKEYID_TO_POINTER (priv->hash_keyid));
- if (!grl_data_has_key (GRL_DATA (media), GRL_METADATA_KEY_SIZE))
+ if (!media || !grl_data_has_key (GRL_DATA (media), GRL_METADATA_KEY_SIZE))
keys = g_list_prepend (keys, GRLKEYID_TO_POINTER (GRL_METADATA_KEY_SIZE));
*missing_keys = keys;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]