[gst-devel] bug in docs or in behaviour of gst_bin_add() regarding to ref-counting.

Wim Taymans wim at fluendo.com
Mon Sep 27 02:28:25 CEST 2004


On Sun, 2004-09-26 at 04:26, Stefan Kost wrote:
> hi hi,
> 
> the docs of gst_bin_add() say that it ref the supplied gst_elemnt, but it does not.
> I have a bin of type gthread
> create a elemten (ref_ct=1)
> the add it (ref_ct still=1)
> 
> Are we useing floating refs?

Short answer, yes. more correct would be: gst_bin_add() sinks and refs
the supplied element, taking ownership of the lifetime of the element.

Wim 

> 
> Ciao
> Stefan





More information about the gstreamer-devel mailing list