[vlc-devel] commit: config: Make sure lua will be able to find share/lua on Mac OS X. ( Pierre d'Herbemont )

git version control git at videolan.org
Wed Dec 30 04:58:11 CET 2009


vlc | branch: master | Pierre d'Herbemont <pdherbemont at free.fr> | Wed Dec 30 04:05:13 2009 +0100| [1f0dd88487e45e7a712e543ce470c561d9b057c8] | committer: Pierre d'Herbemont 

config: Make sure lua will be able to find share/lua on Mac OS X.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=1f0dd88487e45e7a712e543ce470c561d9b057c8
---

 src/config/dirs_macos.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/src/config/dirs_macos.c b/src/config/dirs_macos.c
index fdb272a..fc91de2 100644
--- a/src/config/dirs_macos.c
+++ b/src/config/dirs_macos.c
@@ -43,7 +43,9 @@ static pthread_once_t once = PTHREAD_ONCE_INIT;
 static void init_dirs( void )
 {
     configdir = config_GetUserDir(VLC_CONFIG_DIR);
-    datadir = config_GetUserDir(VLC_DATA_DIR);
+    int ret = asprintf(&datadir, "%s/share", psz_vlcpath);
+    if (ret == -1)
+        datadir = NULL;
 }
 
 const char *config_GetConfDir( void )




More information about the vlc-devel mailing list