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

Stefan Kost kost at imn.htwk-leipzig.de
Mon Sep 27 07:50:47 CEST 2004


hi,

verified. I have already prepare a doc change. Just waiting for release to
commit. Thx.

Stefan

Wim Taymans wrote:
> 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
> 
> 
> 

-- 
      \|/            Stefan Kost
     <@ @>           private            business
+-oOO-(_)-OOo------------------------------------------------------ - - -  -   -
|       __  Address  Simildenstr. 5     HTWK Leipzig, Fb IMN, Postfach 301166
|      ///           04277 Leipzig      04251 Leipzig
| __  ///            Germany            Germany
| \\\///    Phone    +49341 2253538     +49341 30766101
|  \__/     EMail    st_kost_at_gmx.net kost_at_imn.htwk-leipzig.de
|           WWW      www.sonicpulse.de  www.imn.htwk-leipzig.de/~kost/about.html
===-=-=--=---=---------------------------------- - - -  -    -
-------------- next part --------------
A non-text attachment was scrubbed...
Name: kost.vcf
Type: text/x-vcard
Size: 345 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20040927/75a58347/attachment.vcf>


More information about the gstreamer-devel mailing list