Commit 7423a5b0 authored by Gildas Bazin's avatar Gildas Bazin

* src/libvlc.c, src/misc/threads.c: couple of fixes for thread priorities.

parent cd0c5ece
......@@ -211,7 +211,6 @@ int VLC_Create( void )
return VLC_EGENERIC;
}
p_vlc->thread_id = 0;
vlc_thread_set_priority( p_vlc, VLC_THREAD_PRIORITY_LOW );
p_vlc->psz_object_name = "root";
......@@ -219,6 +218,7 @@ int VLC_Create( void )
vlc_mutex_init( p_vlc, &p_vlc->config_lock );
#ifdef SYS_DARWIN
vlc_mutex_init( p_vlc, &p_vlc->quicktime_lock );
vlc_thread_set_priority( p_vlc, VLC_THREAD_PRIORITY_LOW );
#endif
/* Store our newly allocated structure in the global list */
......
......@@ -587,10 +587,12 @@ int __vlc_thread_create( vlc_object_t *p_this, char * psz_file, int i_line,
i_priority = 0;
}
}
#ifndef SYS_DARWIN
else
{
i_priority = 0;
}
#endif
#elif defined( HAVE_CTHREADS_H )
p_this->thread_id = cthread_fork( (cthread_fn_t)func, (any_t)p_data );
......
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