Let's don't by pass the defaults here. This also fixes an thread error at exit.
-#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 )
{
/* Check for short help option */
if( config_GetInt( p_libvlc, "help" ) > 0 )
{
if( !p_priv->b_thread )
{
if( !p_priv->b_thread )
{
msg_Err( p_this, "couldn't set priority of non-existent thread" );
return ESRCH;
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 )
}
#if defined( LIBVLC_USE_PTHREAD )