[vlc-devel] [PATCH] Deprecate vlc_clone_detach()

Romain Vimont rom1v at videolabs.io
Sun Sep 6 18:17:45 CEST 2020


On Sun, Sep 06, 2020 at 04:31:07PM +0300, Rémi Denis-Courmont wrote:
> Le sunnuntaina 6. syyskuuta 2020, 16.15.05 EEST Romain Vimont a écrit :
> > Hi,
> > 
> > On Sun, Sep 06, 2020 at 03:32:27PM +0300, Rémi Denis-Courmont wrote:
> > > The documention outright lies about LibVLC waiting to make this functon
> > > safe. There are no ways to use this function safely other than linking
> > > LibVLC statically into the application, which is not *generally*
> > > practical.
> > 
> > I have mixed feelings about this.
> > 
> > I'm wondering if it would not just be better to just document that
> > unloading the libvlc library is undefined behavior.
> 
> We used to support this until Filip broke it.

If we consider that it is not safe to unload a library (e.g. loaded by
VLC, hence module_unneed() not calling dlclose()), then nothing is
broken.

> People rely on this, with no alternatives, e.g. the Python CTypes and
> JNI bindings.

JNI provides a function to load a library (System.loadLibrary()) but
AFAIK there is nothing to unload.

It seems that it's more or less the same for Python CTypes.

Regards

> 
> We can't just undefine it now.
> 
> -- 
> Rémi Denis-Courmont
> http://www.remlab.net/
> 
> 
> 
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> https://mailman.videolan.org/listinfo/vlc-devel


More information about the vlc-devel mailing list