[grilo-plugins] opensubtitles: Fix warnings running gnome-music
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [grilo-plugins] opensubtitles: Fix warnings running gnome-music
- Date: Wed, 2 Sep 2015 13:03:07 +0000 (UTC)
commit 5a43255eafaf11f6259b362e73c8fc53745d2b87
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]