[grilo-plugins] tmdb: Fix warning in g_object_ref() assignment
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [grilo-plugins] tmdb: Fix warning in g_object_ref() assignment
- Date: Wed, 18 Apr 2018 15:59:57 +0000 (UTC)
commit b1ae7098ee6b22480d8fe11d343a2150ff1414ee
Author: Bastien Nocera <hadess hadess net>
Date: Wed Apr 18 17:58:54 2018 +0200
tmdb: Fix warning in g_object_ref() assignment
grilo-plugins/src/tmdb/grl-tmdb.c: In function ‘grl_tmdb_source_resolve’:
grilo-plugins/src/tmdb/grl-tmdb.c:1346:17: warning: assignment to ‘GrlTmdbSource *’ {aka ‘struct
_GrlTmdbSource *’} from incompatible pointer type ‘GrlSource *’ {aka ‘struct _GrlSource *’}
[-Wincompatible-pointer-types]
closure->self = g_object_ref (source);
^
src/tmdb/grl-tmdb.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/tmdb/grl-tmdb.c b/src/tmdb/grl-tmdb.c
index afe741a..df9b289 100644
--- a/src/tmdb/grl-tmdb.c
+++ b/src/tmdb/grl-tmdb.c
@@ -1343,7 +1343,7 @@ grl_tmdb_source_resolve (GrlSource *source,
GRL_DEBUG ("grl_tmdb_source_resolve");
closure = g_slice_new0 (ResolveClosure);
- closure->self = g_object_ref (source);
+ closure->self = g_object_ref (self);
closure->rs = rs;
closure->pending_requests = g_queue_new ();
closure->keys = g_hash_table_new (g_direct_hash, g_direct_equal);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]