From 1e666bc25b9479cc3c07d18cc7d3ad93e7567066 Mon Sep 17 00:00:00 2001 From: Christophe Massiot Date: Sun, 1 Sep 2002 21:20:29 +0000 Subject: [PATCH] Added a priority for video decoders, for systems with fixed-priority policy. --- include/vlc_threads.h | 7 +++++-- src/input/input_dec.c | 4 ++-- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/include/vlc_threads.h b/include/vlc_threads.h index 4b05a28b03..c0de539dbb 100644 --- a/include/vlc_threads.h +++ b/include/vlc_threads.h @@ -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 * Samuel Hocevar @@ -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 diff --git a/src/input/input_dec.c b/src/input/input_dec.c index dd03a46225..89310b8656 100644 --- a/src/input/input_dec.c +++ b/src/input/input_dec.c @@ -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 * @@ -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 */