X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fmisc%2Fnot_specific.c;h=aa6078f937a964e1d1c23648f4d3e34a55e3bc98;hb=6a0c1f900400949e9bbe8b3ee2bd9acd187a2f48;hp=82a2ac3cbac61926eb3934f4aefc4426a557903c;hpb=7bc7544cb1676b0ae011e02532fbce6778559ac9;p=vlc diff --git a/src/misc/not_specific.c b/src/misc/not_specific.c index 82a2ac3cba..aa6078f937 100644 --- a/src/misc/not_specific.c +++ b/src/misc/not_specific.c @@ -24,13 +24,23 @@ #include #include "../libvlc.h" +#include + +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; } -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; } @@ -39,4 +49,3 @@ void system_End (libvlc_int_t *libvlc) { (void)libvlc; } -