vlc | branch: master | Jean-Baptiste Kempf <[email protected]> | Wed May 17 12:02:49 2017 +0200| [d5ac6c4ce3d9f50b7bf9e9325b8c9f93b376c574] | committer: Jean-Baptiste Kempf
lua: don't call directly config_GetLibDir It is not necessary, because it is only de-facto enabled on Linux, where config_GetDataDir will call config_GetLibDir anyway > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=d5ac6c4ce3d9f50b7bf9e9325b8c9f93b376c574 --- modules/lua/vlc.c | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/modules/lua/vlc.c b/modules/lua/vlc.c index 441113fe61..a5d695ac9f 100644 --- a/modules/lua/vlc.c +++ b/modules/lua/vlc.c @@ -214,17 +214,6 @@ int vlclua_dir_list( const char *luadirname, char ***pppsz_dir_list ) i++; free( datadir ); -#if !(defined(__APPLE__) || defined(_WIN32)) - char *psz_libpath = config_GetLibDir(); - if( likely(psz_libpath != NULL) ) - { - if( likely(asprintf( &ppsz_dir_list[i], "%s"DIR_SEP"lua"DIR_SEP"%s", - psz_libpath, luadirname ) != -1) ) - i++; - free( psz_libpath ); - } -#endif - char *psz_datapath = config_GetDataDir(); if( likely(psz_datapath != NULL) ) { _______________________________________________ vlc-commits mailing list [email protected] https://mailman.videolan.org/listinfo/vlc-commits
