[vlc-devel] [PATCH 22/27] modules: use VLC_PLUGIN_PATH if it exists

Romain Vimont rom1v at videolabs.io
Thu Jun 25 14:23:09 CEST 2020


Do not overwrite the VLC_PLUGIN_PATH environment variable if it exists.

This will allow to provide a way to build sample modules in the
documentation and run them easily (by just setting VLC_PLUGIN_PATH).
---
 bin/vlc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bin/vlc.c b/bin/vlc.c
index 268922a617..4e22ca2db3 100644
--- a/bin/vlc.c
+++ b/bin/vlc.c
@@ -130,7 +130,7 @@ int main(int argc, const char *argv[])
 #endif
 
 #ifdef TOP_BUILDDIR
-    setenv ("VLC_PLUGIN_PATH", TOP_BUILDDIR"/modules", 1);
+    setenv ("VLC_PLUGIN_PATH", TOP_BUILDDIR"/modules", 0);
     setenv ("VLC_DATA_PATH", TOP_SRCDIR"/share", 1);
     setenv ("VLC_LIB_PATH", TOP_BUILDDIR"/modules", 1);
 #endif
-- 
2.27.0



More information about the vlc-devel mailing list