[vlc-devel] commit: variables: Inherit path is now parent->libvlc->saved config ( Derk-Jan Hartman )

Rémi Denis-Courmont rem at videolan.org
Fri Sep 19 15:46:03 CEST 2008


Le vendredi 19 septembre 2008 15:59:39 Derk-Jan Hartman, vous avez écrit :
> On 19 sep 2008, at 14:50, Antoine Cellerier wrote:
> > On Fri, Sep 19, 2008, git version control wrote:
> >> -    if( !p_this->p_parent )
> >> +    if( !p_this->p_parent && !p_this->p_libvlc )
> >
> > I thought that libvlc was always the topmost parent of each object?
> > (inherit goes through all the parents right?)
>
> Unless the object is not yet attached. Atm. we have a considerable
> group of variables that are created when an object is not yet attached
> to it's parent yet.
> This is "temporary" measure that eleviates the problem, while i find
> the courage to mess around with the object creation code to seperate
> the meaning of "object attached" vs. "object init'ed".

And postpone parent deletion until the children are detached/deleted... 
Currently, objects are orphaned when their parent is destroyed - that was a 
hack around some deadlocks.

-- 
Rémi Denis-Courmont
http://git.remlab.net/cgi-bin/gitweb.cgi?p=vlc-courmisch.git;a=summary



More information about the vlc-devel mailing list