On Thu, Jul 18, 2002 at 09:52:39PM +0200, Denis Oliver Kropp wrote:
> Quoting Ville Syrj?l? ([EMAIL PROTECTED]):
> > On Thu, Jul 18, 2002 at 08:23:48PM +0200, Denis Oliver Kropp wrote:
> > > AddRef() should be called whenever the interface pointer is copied without
> > > knowledge of it's creator. So if you are writing an application you know
> > > when to Release() it and when it's safe to simply copy the pointer without
> > > AddRef()ing.
> > 
> > So destination->AddRef() should be added to the PlayTo() function
> > and destination->Release() to v4l_stop().
> 
> Only if you keep the IDirectFBSurface* somewhere. The CoreSurface* can
> be copied without referencing because of the surface listener registered
> via reactor_attach().

Ah. Cancel that part then :)

-- 
Ville Syrj�l�
[EMAIL PROTECTED]
http://www.sci.fi/~syrjala/


-- 
Info:  To unsubscribe send a mail to [EMAIL PROTECTED] with 
"unsubscribe directfb-dev" as subject.

Reply via email to