]> git.sesse.net Git - vlc/blobdiff - src/misc/not_specific.c
Set libvlc path for other platforms
[vlc] / src / misc / not_specific.c
index 82a2ac3cbac61926eb3934f4aefc4426a557903c..6d0f369566436f3e852de76cb772f50faf90947a 100644 (file)
 
 #include <vlc_common.h>
 #include "../libvlc.h"
+#include <pthread.h>
+
+static void set_libvlc_path (void)
+{
+    psz_vlcpath = (char *)PKGLIBDIR;
+}
 
 void system_Init (libvlc_int_t *libvlc, int *argc, const char *argv[])
 {
+    pthread_once_t once = PTHREAD_ONCE_INIT;
+
+    pthread_once (&once, set_libvlc_path);
     (void)libvlc; (void)argc; (void)argv;
 }
 
@@ -39,4 +48,3 @@ void system_End (libvlc_int_t *libvlc)
 {
     (void)libvlc;
 }
-