[0.11] gstreamer: gst: Changed introspection transfer flag to ( transfer floating)

Edward Hervey bilboed at kemper.freedesktop.org
Wed Jan 25 06:06:49 PST 2012


Module: gstreamer
Branch: 0.11
Commit: 02f721f7ea83f433077458b9b61451eb0bc6de40
URL:    http://cgit.freedesktop.org/gstreamer/gstreamer/commit/?id=02f721f7ea83f433077458b9b61451eb0bc6de40

Author: Peteris Krisjanis <pecisk at gmail.com>
Date:   Wed Jan 25 16:01:02 2012 +0200

gst: Changed introspection transfer flag to (transfer floating)

for gst_pad_new, gst_ghost_pad_new and gst_bin_new constuctors. Fixes
segfaults due of transfer full and floating ref problem.

---

 gst/gstbin.c      |    2 +-
 gst/gstghostpad.c |    2 +-
 gst/gstpad.c      |    2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/gst/gstbin.c b/gst/gstbin.c
index 2f466e8..b2b64fa 100644
--- a/gst/gstbin.c
+++ b/gst/gstbin.c
@@ -558,7 +558,7 @@ gst_bin_dispose (GObject * object)
  *
  * Creates a new bin with the given name.
  *
- * Returns: (transfer full): a new #GstBin
+ * Returns: (transfer floating): a new #GstBin
  */
 GstElement *
 gst_bin_new (const gchar * name)
diff --git a/gst/gstghostpad.c b/gst/gstghostpad.c
index 1dd430e..953704b 100644
--- a/gst/gstghostpad.c
+++ b/gst/gstghostpad.c
@@ -917,7 +917,7 @@ gst_ghost_pad_new_no_target (const gchar * name, GstPadDirection dir)
  *
  * Will ref the target.
  *
- * Returns: (transfer full): a new #GstPad, or NULL in case of an error.
+ * Returns: (transfer floating): a new #GstPad, or NULL in case of an error.
  */
 GstPad *
 gst_ghost_pad_new (const gchar * name, GstPad * target)
diff --git a/gst/gstpad.c b/gst/gstpad.c
index 8aec51c..c0d384b 100644
--- a/gst/gstpad.c
+++ b/gst/gstpad.c
@@ -672,7 +672,7 @@ gst_pad_get_property (GObject * object, guint prop_id,
  * will be assigned.
  * This function makes a copy of the name so you can safely free the name.
  *
- * Returns: (transfer full): a new #GstPad, or NULL in case of an error.
+ * Returns: (transfer floating): a new #GstPad, or NULL in case of an error.
  *
  * MT safe.
  */



More information about the gstreamer-commits mailing list