X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Flibvlc.c;h=842aa7270b95c376e8dec51088184c9f8476348d;hb=10a6bde56813620846826fed6979b2548a6457ea;hp=17482f6973d3152dcfa79e200f5f5ef3f25eb284;hpb=d8421cc77d6ec9a4899a2549ffe9e0a41fbdbb03;p=vlc diff --git a/src/libvlc.c b/src/libvlc.c index 17482f6973..842aa7270b 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 ) { @@ -1212,10 +1206,7 @@ static void SetLanguage ( const char *psz_lang ) * the language at runtime under eg. Windows. Beware that this * makes the environment unconsistent when libvlc is unloaded and * should probably be moved to a safer place like vlc.c. */ - static char psz_lcall[20]; - snprintf( psz_lcall, 19, "LC_ALL=%s", psz_lang ); - psz_lcall[19] = '\0'; - putenv( psz_lcall ); + setenv( "LC_ALL", psz_lang, 1 ); #endif setlocale( LC_ALL, psz_lang );