Steve Lhomme pushed to branch master at VideoLAN / VLC


Commits:
f8d50df3 by Steve Lhomme at 2026-02-08T09:06:32+00:00
win32: dirs: handle VLC_LIB_PATH when VLC_PKG_LIB_DIR is requested

It's undocumented but the other ports use VLC_LIB_PATH if it's set.

VLC_PKG_LIB_DIR is only used to get the path with the "plugins" directory.

- - - - -
b82cad5c by Steve Lhomme at 2026-02-08T09:06:32+00:00
dirs-uap: handle VLC_LIB_PATH when VLC_PKG_LIB_DIR is requested

It's undocumented but the other ports use VLC_LIB_PATH if it's set.

VLC_PKG_LIB_DIR is only used to get the path with the "plugins" directory.

- - - - -


2 changed files:

- src/win32/dirs-uap.c
- src/win32/dirs.c


Changes:

=====================================
src/win32/dirs-uap.c
=====================================
@@ -169,6 +169,10 @@ char *config_GetSysPath(vlc_sysdir_t type, const char 
*filename)
             dir = config_GetDataDir();
             break;
         case VLC_PKG_LIB_DIR:
+            dir = getenv ("VLC_LIB_PATH");
+            if (dir)
+                return strdup( dir );
+            /* fallthrough */
         case VLC_PKG_LIBEXEC_DIR:
         case VLC_SYSDATA_DIR:
             return NULL;


=====================================
src/win32/dirs.c
=====================================
@@ -79,6 +79,10 @@ char *config_GetSysPath(vlc_sysdir_t type, const char 
*filename)
             dir = config_GetDataDir();
             break;
         case VLC_PKG_LIB_DIR:
+            dir = getenv ("VLC_LIB_PATH");
+            if (dir)
+                return strdup( dir );
+            /* fallthrough */
         case VLC_PKG_LIBEXEC_DIR:
             dir = config_GetLibDir();
             break;



View it on GitLab: 
https://code.videolan.org/videolan/vlc/-/compare/37e0097a477413b32de017cba96013bf2467bda7...b82cad5c5dae0e3736a23838474db68cdd130d56

-- 
View it on GitLab: 
https://code.videolan.org/videolan/vlc/-/compare/37e0097a477413b32de017cba96013bf2467bda7...b82cad5c5dae0e3736a23838474db68cdd130d56
You're receiving this email because of your account on code.videolan.org.


VideoLAN code repository instance
_______________________________________________
vlc-commits mailing list
[email protected]
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to