[vlc-devel] [PATCH] GSoC: lua services discovery, core part
remi at remlab.net
Mon Nov 9 22:34:40 CET 2009
Le lundi 9 novembre 2009 23:17:59 Fabio Ritrovato, vous avez écrit :
> 2009/11/9 Rémi Denis-Courmont <remi at remlab.net>:
> >> Ok, I think I'm starting to get it...
> >> But the LUA plugin is going to get dlopened anyway any time you add a
> >> new script, is that ok?
> > I am not sure what you mean.
> > You _cannot_ change the plugin descriptor while VLC is running.
> I mean that even if I enable the caching of lua SDs, when you add a
> new one you have to run the module entry anyway...
> So, you're saying that no code should go in the module entry, and
> modules should be cached?
I'm saying that you the module entry MUST return the EXACT SAME results any
time it is called during the lifetime of a VLC process. Otherwise CacheMerge()
can trigger crashes and weird errors. Hence your current patch won't work.
On top of that, working around the cache causes performance degration, so it's
best avoided. But that's only a secondary issue.
More information about the vlc-devel