Commit 10a6bde5 authored by Pierre d'Herbemont's avatar Pierre d'Herbemont

libvlccore: Don't set the priority on first thread on Mac OS X.

Let's don't by pass the defaults here. This also fixes an thread error at exit.
parent 54b65bed
......@@ -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 )
{
......
......@@ -624,13 +624,8 @@ int __vlc_thread_set_priority( vlc_object_t *p_this, const char * psz_file,
if( !p_priv->b_thread )
{
#ifndef __APPLE__
msg_Err( p_this, "couldn't set priority of non-existent thread" );
return ESRCH;
#else
# warning FIXME: this is wrong
p_priv->b_thread = pthread_self();
#endif
}
#if defined( LIBVLC_USE_PTHREAD )
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment