]> git.sesse.net Git - vlc/commitdiff
Refuse to load any module if "none" is requested
authorRémi Denis-Courmont <remi@remlab.net>
Sat, 17 Nov 2012 20:33:32 +0000 (22:33 +0200)
committerRémi Denis-Courmont <remi@remlab.net>
Sat, 17 Nov 2012 20:33:32 +0000 (22:33 +0200)
This matches behavior from previous versions. "none" can forcefully
disable a module even if strict mode is NOT enabled.

src/modules/modules.c

index 9ca3782547ec71fe081e36d7286747b2952bc0aa..d9fdb7daf24ae734ea39661978e26e9ea5080c20 100644 (file)
@@ -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++)
         {