[vlc-devel] commit: Revived vout_Destroy from the dead. (Laurent Aimar )

Rémi Denis-Courmont rdenis at simphalempin.com
Mon Jul 21 16:28:53 CEST 2008

Le jeudi 17 juillet 2008 22:44:43 Pierre d'Herbemont, vous avez écrit :
> > You cannot remove the vlc_object_release inside vout_Destroy or
> > everyone
> > will have to call vout_Close AND vlc_object_release. (That's why
> > vout_Destroy)
> We would call vout_Close+ vlc_object_release vout_CloseAndRelease().
> It's closer to reality.

Two different concept are being mixed up here.

Holding a reference to an object allows you to set/get/trigger its variables, 
emit a log message (though this might not be the brightest idea), and, in 
some "specific" cases do some more thread-safe specific things.

Owning an object is a different thing. Then you're responsible for releasing 
its "non-memory" resources (especially threads and shared object mappings).

Rémi Denis-Courmont

More information about the vlc-devel mailing list