[vlc-commits] modules: fix plugins directory
Rémi Denis-Courmont
git at videolan.org
Sun Mar 11 01:16:16 CET 2018
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sun Mar 11 02:15:44 2018 +0200| [72835a29c569fd14a4b1df80da3226a9d7330221] | committer: Rémi Denis-Courmont
modules: fix plugins directory
Regression from 2d062f70943eae3acdb5cc2d0cc9d4599c8d45f4.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=72835a29c569fd14a4b1df80da3226a9d7330221
---
src/modules/bank.c | 10 ++++------
1 file changed, 4 insertions(+), 6 deletions(-)
diff --git a/src/modules/bank.c b/src/modules/bank.c
index c9eb2d8b27..e7e0b9599c 100644
--- a/src/modules/bank.c
+++ b/src/modules/bank.c
@@ -462,14 +462,12 @@ static void AllocateAllPlugins (vlc_object_t *p_this)
#else
/* Contruct the special search path for system that have a relocatable
* executable. Set it to <vlc path>/plugins. */
- char *vlcpath = config_GetLibDir ();
- if (likely(vlcpath != NULL)
- && likely(asprintf (&paths, "%s" DIR_SEP "plugins", vlcpath) != -1))
+ char *vlcpath = config_GetSysPath(VLC_PKG_LIB_DIR, "plugins");
+ if (likely(vlcpath != NULL))
{
- AllocatePluginPath (p_this, paths, mode);
- free( paths );
+ AllocatePluginPath(p_this, vlcpath, mode);
+ free(vlcpath);
}
- free (vlcpath);
#endif /* VLC_WINSTORE_APP */
/* If the user provided a plugin path, we add it to the list */
More information about the vlc-commits
mailing list