[vlc-devel] [PATCH 1/2] modules: move done label before condition

Alexandre Janniaux ajanni at videolabs.io
Fri Jul 24 11:20:52 CEST 2020


Otherwise even a found module will raise a message "no modules found"
---
 src/modules/modules.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/modules/modules.c b/src/modules/modules.c
index 702931f9785..78ef0db4708 100644
--- a/src/modules/modules.c
+++ b/src/modules/modules.c
@@ -277,8 +277,9 @@ module_t *(vlc_module_load)(struct vlc_logger *log, const char *capability,
 
     va_end (args);
 
+done:
     if (module == NULL)
-done:   vlc_debug(log, "no %s modules matched", capability);
+        vlc_debug(log, "no %s modules matched", capability);
 
     free(mods);
     return module;
-- 
2.27.0



More information about the vlc-devel mailing list