Commit e85f8602 authored by Christophe Massiot's avatar Christophe Massiot

* include/vlc_threads.h: Priority level VLC_THREAD_PRIORITY_HIGHEST is now

   available for all platforms.
 * modules/access_output/udp.c: Now runs the output thread at
   VLC_THREAD_PRIORITY_HIGHEST
parent 0c8da599
......@@ -75,6 +75,7 @@
# define VLC_THREAD_PRIORITY_AUDIO 37
# define VLC_THREAD_PRIORITY_VIDEO (-47)
# define VLC_THREAD_PRIORITY_OUTPUT 37
# define VLC_THREAD_PRIORITY_HIGHEST 37
#elif defined(SYS_BEOS)
# define VLC_THREAD_PRIORITY_LOW 5
......@@ -82,6 +83,7 @@
# define VLC_THREAD_PRIORITY_AUDIO 10
# define VLC_THREAD_PRIORITY_VIDEO 5
# define VLC_THREAD_PRIORITY_OUTPUT 15
# define VLC_THREAD_PRIORITY_HIGHEST 15
#elif defined(PTHREAD_COND_T_IN_PTHREAD_H)
# define VLC_THREAD_PRIORITY_LOW 0
......@@ -89,6 +91,7 @@
# define VLC_THREAD_PRIORITY_AUDIO 10
# define VLC_THREAD_PRIORITY_VIDEO 0
# define VLC_THREAD_PRIORITY_OUTPUT 30
# define VLC_THREAD_PRIORITY_HIGHEST 40
#elif defined(WIN32) || defined(UNDER_CE)
/* Define different priorities for WinNT/2K/XP and Win9x/Me */
......@@ -110,6 +113,7 @@
# define VLC_THREAD_PRIORITY_AUDIO 0
# define VLC_THREAD_PRIORITY_VIDEO 0
# define VLC_THREAD_PRIORITY_OUTPUT 0
# define VLC_THREAD_PRIORITY_HIGHEST 0
#endif
......
......@@ -266,13 +266,8 @@ static int Open( vlc_object_t *p_this )
p_sys->i_mtu = socket_desc.i_mtu;
#ifdef WIN32
if( vlc_thread_create( p_sys->p_thread, "sout write thread", ThreadWrite,
VLC_THREAD_PRIORITY_HIGHEST, VLC_FALSE ) )
#else
if( vlc_thread_create( p_sys->p_thread, "sout write thread", ThreadWrite,
VLC_THREAD_PRIORITY_OUTPUT, VLC_FALSE ) )
#endif
{
msg_Err( p_access->p_sout, "cannot spawn sout access thread" );
vlc_object_destroy( p_sys->p_thread );
......
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