[vlc-commits] Never load module with zero score implicitly
Rémi Denis-Courmont
git at videolan.org
Thu Oct 18 20:18:22 CEST 2012
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Thu Oct 18 21:17:30 2012 +0300| [40b9ca96c138a97542a3948c20853ca8ff610edc] | committer: Rémi Denis-Courmont
Never load module with zero score implicitly
Regression from cf98594d6abd2e68fabfc440677a93bfe0f0e631.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=40b9ca96c138a97542a3948c20853ca8ff610edc
---
src/modules/modules.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/modules/modules.c b/src/modules/modules.c
index b8255bd..9ca3782 100644
--- a/src/modules/modules.c
+++ b/src/modules/modules.c
@@ -290,7 +290,7 @@ module_t *vlc_module_load(vlc_object_t *obj, const char *capability,
for (ssize_t i = 0; i < total; i++)
{
module_t *cand = mods[i];
- if (cand == NULL)
+ if (cand == NULL || module_get_score (cand) <= 0)
continue;
int ret = module_load (obj, cand, probe, args);
More information about the vlc-commits
mailing list