[vlc-devel] [RFC PATCH] modules: add plugins-blacklist option

Thomas Guillem thomas at gllm.fr
Wed Oct 21 20:33:37 CEST 2015



On Wed, Oct 21, 2015, at 19:15, Rémi Denis-Courmont wrote:
> On Wednesday 21 October 2015 19:10:47 Thomas Guillem wrote:
> > ---
> >  src/libvlc-module.c |  5 ++++
> >  src/modules/bank.c  | 71
> > ++++++++++++++++++++++++++++++++++++++--------------- 2 files changed, 56
> > insertions(+), 20 deletions(-)
> > 
> > diff --git a/src/libvlc-module.c b/src/libvlc-module.c
> > index a13093d..a959f22 100644
> > --- a/src/libvlc-module.c
> > +++ b/src/libvlc-module.c
> > @@ -1026,6 +1026,9 @@ static const char *const ppsz_prefres[] = {
> >  #define PLUGINS_CACHE_LONGTEXT N_( \
> >      "Use a plugins cache which will greatly improve the startup time of
> > VLC.")
> > 
> > +#define PLUGINS_BLACKLIST_TEXT N_("Blacklist plugins")
> > +#define PLUGINS_BLACKLIST_LONGTEXT N_("List of blacklisted plugins (won't
> > be loaded)") +
> >  #define STATS_TEXT N_("Locally collect statistics")
> >  #define STATS_LONGTEXT N_( \
> >       "Collect miscellaneous local statistics about the playing media.")
> > @@ -1950,6 +1953,8 @@ vlc_module_begin ()
> >                PLUGINS_CACHE_LONGTEXT, true )
> >      add_obsolete_string( "plugin-path" ) /* since 2.0.0 */
> >      add_obsolete_string( "data-path" ) /* since 2.1.0 */
> > +    add_string( "plugins-blacklist", NULL, PLUGINS_BLACKLIST_TEXT,
> > +                PLUGINS_BLACKLIST_LONGTEXT, true );
> 
> Plugins are (currently) per-process.

Ah yes, do we want to fix it ? (Attach a plugin bank to libvlc)

A  configuration option is
> per-instance. 
> This is fine with VLC because it only ever has a single instance per
> process.
> 
> This won´t work properly with LibVLC though.
> 
> -- 
> 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