[grilo-plugins] tmdb: Fix reversed return arg check
- From: Juan A. Suarez Romero <jasuarez src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [grilo-plugins] tmdb: Fix reversed return arg check
- Date: Mon, 20 Jan 2014 09:26:38 +0000 (UTC)
commit 8ddccd23344e0d4500051e89e56f62324568fa7d
Author: Bastien Nocera <hadess hadess net>
Date: Mon Jan 6 17:23:12 2014 +0100
tmdb: Fix reversed return arg check
grl_tmdb_source_may_resolve() was checking for missing_keys the
wrong way around.
https://bugzilla.gnome.org/show_bug.cgi?id=721642
src/tmdb/grl-tmdb.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/tmdb/grl-tmdb.c b/src/tmdb/grl-tmdb.c
index dcdbcaf..fb9abf6 100644
--- a/src/tmdb/grl-tmdb.c
+++ b/src/tmdb/grl-tmdb.c
@@ -1210,7 +1210,7 @@ grl_tmdb_source_may_resolve (GrlSource *source,
/* Caller wants to check what's needed to resolve */
if (!media) {
- if (!missing_keys)
+ if (missing_keys)
*missing_keys = grl_metadata_key_list_new (GRL_METADATA_KEY_TITLE, NULL);
return FALSE;
@@ -1219,7 +1219,7 @@ grl_tmdb_source_may_resolve (GrlSource *source,
/* We can do nothing without a title or the movie-id */
if (!grl_data_has_key (GRL_DATA (media), GRL_METADATA_KEY_TITLE) &&
!grl_data_has_key (GRL_DATA (media), GRL_TMDB_METADATA_KEY_TMDB_ID)) {
- if (!missing_keys)
+ if (missing_keys)
*missing_keys = grl_metadata_key_list_new (GRL_METADATA_KEY_TITLE, NULL);
return FALSE;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]