Commit 384062b8 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont
Browse files

Refuse to load any module if "none" is requested

This matches behavior from previous versions. "none" can forcefully
disable a module even if strict mode is NOT enabled.
parent bc1c318f
......@@ -261,6 +261,9 @@ module_t *vlc_module_load(vlc_object_t *obj, const char *capability,
const char *shortcut = buf;
assert (shortcut != NULL);
if (!strcasecmp ("none", shortcut))
goto done;
obj->b_force = strict && strcasecmp ("any", shortcut);
for (ssize_t i = 0; i < total; i++)
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment