[grilo] grl-source: Make resolution funcs own 'media' param
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [grilo] grl-source: Make resolution funcs own 'media' param
- Date: Mon, 27 Jun 2016 12:21:09 +0000 (UTC)
commit 6d46eb23cedaa024ccd3b3fdd88dd00e054acf70
Author: Adrien Plazas <kekun plazas laposte net>
Date: Fri May 13 10:05:46 2016 +0200
grl-source: Make resolution funcs own 'media' param
Declare the ownership of the 'media' param of grl_source_resolve() and
grl_source_resolve_sync() as fully transfered.
This is needed to avoid reference counting bugs in the Vala bindings.
https://bugzilla.gnome.org/show_bug.cgi?id=766386
src/grl-source.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/grl-source.c b/src/grl-source.c
index aedbacc..822ed69 100644
--- a/src/grl-source.c
+++ b/src/grl-source.c
@@ -3218,7 +3218,7 @@ grl_source_set_auto_split_threshold (GrlSource *source,
/**
* grl_source_resolve:
* @source: a source
- * @media: (allow-none): a data transfer object
+ * @media: (allow-none) (transfer full): a data transfer object
* @keys: (element-type GrlKeyID): the #GList of
* #GrlKeyID<!-- -->s to request
* @options: options to pass to this operation
@@ -3374,7 +3374,7 @@ grl_source_resolve (GrlSource *source,
/**
* grl_source_resolve_sync:
* @source: a source
- * @media: (allow-none): a data transfer object
+ * @media: (allow-none) (transfer full): a data transfer object
* @keys: (element-type GrlKeyID): the #GList of
* #GrlKeyID<!-- -->s to request
* @options: options to pass to this operation
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]