[vlc-devel] CIL bindings and brain dump on LibVLC

Pierre d'Herbemont pdherbemont at free.fr
Sun Oct 21 23:28:51 CEST 2007


On Oct 21, 2007, at 9:36 PM, Rémi Denis-Courmont wrote:

> The other big problem I have had is the lack of reference counting on
> libvlc_instance_t. The garbage collector ensures that any allocated
> libvlc_instance_t will be released with libvlc_destory, but it  
> cannot warrant
> that any other dependent LibVLC object such as a media instance or  
> a media
> descriptor will not similarly be released *after*  
> libvlc_instance_t... and
> then, it does actually crash the whole process :-(
> I would really prefer that libvlc_instance_t be reference counted,  
> yield
> whenever a dependant object is allocated, and released whenever it is
> destroyed, so that it may survive beyond libvlc_destroy if needed.  
> There is
> support for reference counting the handle in CIL, but I think it  
> would be
> clumsy to do so.

Feel free to implement refcounting for it, that's the way to go to me.

Pierre.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20071021/1d1565f6/attachment.html>


More information about the vlc-devel mailing list