X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Flibvlc.c;h=407dabeeeb70c6b65a5cfe414f7359928a3f9406;hb=a5c83dda798f93cc7a76bbb50d89352117e6ec46;hp=22d1183918bb2f47ffebb467dc10ce5a8ad03af2;hpb=494ace96d068ee8e4b6b689da0ae469c0c0e4fe3;p=vlc diff --git a/src/libvlc.c b/src/libvlc.c index 22d1183918..407dabeeeb 100644 --- a/src/libvlc.c +++ b/src/libvlc.c @@ -306,12 +306,6 @@ int libvlc_InternalInit( libvlc_int_t *p_libvlc, int i_argc, return VLC_EGENERIC; } -#ifdef __APPLE__ - /* vlc_thread_set_priority needs to query the config, - * so this is the earliest moment where we can set this */ - vlc_thread_set_priority( p_libvlc, VLC_THREAD_PRIORITY_LOW ); -#endif - /* Check for short help option */ if( config_GetInt( p_libvlc, "help" ) > 0 ) { @@ -1232,8 +1226,8 @@ static inline int LoadMessages (void) static const char psz_path[] = LOCALEDIR; #else char psz_path[1024]; - if (snprintf (psz_path, sizeof (psz_path), "%s/%s", - vlc_global()->psz_vlcpath, "locale") + if (snprintf (psz_path, sizeof (psz_path), "%s" DIR_SEP "%s", + config_GetDataDir(), "locale") >= (int)sizeof (psz_path)) return -1;