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.
This commit is contained in:
Peteris Krisjanis 2012-01-25 16:01:02 +02:00 committed by Edward Hervey
parent c3a9671125
commit 02f721f7ea
3 changed files with 3 additions and 3 deletions

View 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)

View 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)

View 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.
*/