mirror of
https://code.videolan.org/videolan/vlc
synced 2024-10-07 03:56:28 +02:00
Added a priority for video decoders, for systems with fixed-priority
policy.
This commit is contained in:
parent
13f459366e
commit
1e666bc25b
@ -3,7 +3,7 @@
|
||||
* This header provides portable declarations for mutexes & conditions
|
||||
*****************************************************************************
|
||||
* Copyright (C) 1999, 2002 VideoLAN
|
||||
* $Id: vlc_threads.h,v 1.11 2002/08/30 12:23:23 sam Exp $
|
||||
* $Id: vlc_threads.h,v 1.12 2002/09/01 21:20:29 massiot Exp $
|
||||
*
|
||||
* Authors: Jean-Marc Dressler <polux@via.ecp.fr>
|
||||
* Samuel Hocevar <sam@via.ecp.fr>
|
||||
@ -68,21 +68,24 @@
|
||||
|
||||
/* Thread priorities */
|
||||
#ifdef SYS_DARWIN
|
||||
# define VLC_THREAD_PRIORITY_LOW 10
|
||||
# define VLC_THREAD_PRIORITY_LOW 0
|
||||
# define VLC_THREAD_PRIORITY_INPUT 37
|
||||
# define VLC_THREAD_PRIORITY_AUDIO 38
|
||||
# define VLC_THREAD_PRIORITY_VIDEO 36
|
||||
# define VLC_THREAD_PRIORITY_OUTPUT 38
|
||||
|
||||
#elif defined(WIN32)
|
||||
# define VLC_THREAD_PRIORITY_LOW 0
|
||||
# define VLC_THREAD_PRIORITY_INPUT THREAD_PRIORITY_ABOVE_NORMAL
|
||||
# define VLC_THREAD_PRIORITY_AUDIO THREAD_PRIORITY_ABOVE_NORMAL
|
||||
# define VLC_THREAD_PRIORITY_VIDEO 0
|
||||
# define VLC_THREAD_PRIORITY_OUTPUT THREAD_PRIORITY_ABOVE_NORMAL
|
||||
|
||||
#else
|
||||
# define VLC_THREAD_PRIORITY_LOW 0
|
||||
# define VLC_THREAD_PRIORITY_INPUT 0
|
||||
# define VLC_THREAD_PRIORITY_AUDIO 0
|
||||
# define VLC_THREAD_PRIORITY_VIDEO 0
|
||||
# define VLC_THREAD_PRIORITY_OUTPUT 0
|
||||
|
||||
#endif
|
||||
|
@ -2,7 +2,7 @@
|
||||
* input_dec.c: Functions for the management of decoders
|
||||
*****************************************************************************
|
||||
* Copyright (C) 1999-2001 VideoLAN
|
||||
* $Id: input_dec.c,v 1.46 2002/08/29 23:53:22 massiot Exp $
|
||||
* $Id: input_dec.c,v 1.47 2002/09/01 21:20:29 massiot Exp $
|
||||
*
|
||||
* Authors: Christophe Massiot <massiot@via.ecp.fr>
|
||||
*
|
||||
@ -74,7 +74,7 @@ decoder_fifo_t * input_RunDecoder( input_thread_t * p_input,
|
||||
}
|
||||
else
|
||||
{
|
||||
i_priority = VLC_THREAD_PRIORITY_LOW;
|
||||
i_priority = VLC_THREAD_PRIORITY_VIDEO;
|
||||
}
|
||||
|
||||
/* Spawn the decoder thread */
|
||||
|
Loading…
Reference in New Issue
Block a user