pipeline elements memory management
mathieu at centricular.com
Fri Nov 9 01:57:34 UTC 2018
Yes it will, as GstElement inherits from GInitiallyUnowned.
If for one reason or another your call to gst_bin_add() fails unreffing the element remains your responsibility.
On 11/9/18 2:54 AM, themanonthemoon wrote:
> If I create elements using gst_element_factory_make(...), add the elements to
> a pipeline and then unref the pipeline, will that automatically unref the
> elements in the pipeline?
> It's a little unclear how memory management works with the elements. The
> examples don't ever free the elements, and I don't see any info in the docs
> about who owns the elements.
> Sent from: http://gstreamer-devel.966125.n4.nabble.com/
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
More information about the gstreamer-devel