gst: Changed introspection transfer flag to (transfer floating)
authorPeteris Krisjanis <pecisk@gmail.com>
Wed, 25 Jan 2012 14:01:02 +0000 (16:01 +0200)
committerEdward Hervey <edward.hervey@collabora.co.uk>
Wed, 25 Jan 2012 14:05:21 +0000 (15:05 +0100)
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
gst/gstghostpad.c
gst/gstpad.c

index 2f466e8..b2b64fa 100644 (file)
@@ -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)
index 1dd430e..953704b 100644 (file)
@@ -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)
index 8aec51c..c0d384b 100644 (file)
@@ -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.
  */