[vlc-devel] [RFC PATCH] modules: add plugins-blacklist option
Rémi Denis-Courmont
remi at remlab.net
Wed Oct 21 19:15:10 CEST 2015
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. 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/
More information about the vlc-devel
mailing list