]> git.sesse.net Git - vlc/commitdiff
Added a priority for video decoders, for systems with fixed-priority
authorChristophe Massiot <massiot@videolan.org>
Sun, 1 Sep 2002 21:20:29 +0000 (21:20 +0000)
committerChristophe Massiot <massiot@videolan.org>
Sun, 1 Sep 2002 21:20:29 +0000 (21:20 +0000)
policy.

include/vlc_threads.h
src/input/input_dec.c

index 4b05a28b03383e5566cc2206d3e3de64c5596cf8..c0de539dbb07b6e35af3762825a7a156a7652841 100644 (file)
@@ -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>
 
 /* 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
index dd03a46225103dab7bac3a4f4879a4bcd95246be..89310b86566b037adc3a952448c1c9c4866312c4 100644 (file)
@@ -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 */