mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 03:35:21 +00:00
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:
parent
c3a9671125
commit
02f721f7ea
3 changed files with 3 additions and 3 deletions
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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.
|
||||
*/
|
||||
|
|
Loading…
Reference in a new issue