[vlc-commits] commit: Set libvlc path for other platforms ( Rémi Denis-Courmont )

git version control git at videolan.org
Thu Mar 4 18:53:42 CET 2010


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Thu Mar  4 19:44:11 2010 +0200| [5cc597e79abc2d8acf36ffee70860ee512e9ac19] | committer: Rémi Denis-Courmont 

Set libvlc path for other platforms

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

 src/misc/not_specific.c |   10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)

diff --git a/src/misc/not_specific.c b/src/misc/not_specific.c
index 82a2ac3..6d0f369 100644
--- a/src/misc/not_specific.c
+++ b/src/misc/not_specific.c
@@ -24,9 +24,18 @@
 
 #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;
 }
-



More information about the vlc-commits mailing list