]> git.sesse.net Git - vlc/blobdiff - src/misc/not_specific.c
Use var_Inherit* instead of var_CreateGet*.
[vlc] / src / misc / not_specific.c
index e8b7b81b049f6e296469f7b683f58a21109d488d..aa6078f937a964e1d1c23648f4d3e34a55e3bc98 100644 (file)
 # include "config.h"
 #endif
 
-#include <vlc/vlc.h>
+#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[])
 {
-       (void)libvlc; (void)argc; (void)argv;
+    pthread_once_t once = PTHREAD_ONCE_INIT;
+
+    pthread_once (&once, set_libvlc_path);
+    (void)libvlc; (void)argc; (void)argv;
 }
 
-void system_Configure (libvlc_int_t *libvlc, int *argc, const char *argv[])
+void system_Configure (libvlc_int_t *libvlc,
+                       int argc, const char *const argv[])
 {
-       (void)libvlc; (void)argc; (void)argv;
+    (void)libvlc; (void)argc; (void)argv;
 }
 
 void system_End (libvlc_int_t *libvlc)
 {
-       (void)libvlc;
+    (void)libvlc;
 }
-