]> git.sesse.net Git - vlc/commitdiff
* Always set priorities on Mac OS X.
authorDerk-Jan Hartman <hartman@videolan.org>
Sun, 16 Oct 2005 15:44:56 +0000 (15:44 +0000)
committerDerk-Jan Hartman <hartman@videolan.org>
Sun, 16 Oct 2005 15:44:56 +0000 (15:44 +0000)
* Simplify something of [12852]

src/libvlc.h
src/misc/threads.c

index ab30c8162a996bed3ab934e832e336dfcdda1728..38c65ca3051af439fbe8c486131fc75d1ec07a59 100644 (file)
@@ -1253,8 +1253,12 @@ vlc_module_begin();
     add_bool( "minimize-threads", 0, NULL, MINIMIZE_THREADS_TEXT,
               MINIMIZE_THREADS_LONGTEXT, VLC_TRUE );
 
-#if !defined(SYS_BEOS) && defined(PTHREAD_COND_T_IN_PTHREAD_H)
-    add_bool( "rt-priority", 0, NULL, RT_PRIORITY_TEXT,
+    /* Always set prio's on Darwin */
+#if defined(SYS_DARWIN)
+    add_bool( "rt-priority", VLC_TRUE, NULL, RT_PRIORITY_TEXT,
+              RT_PRIORITY_LONGTEXT, VLC_TRUE );
+#elif !defined(SYS_BEOS) && defined(PTHREAD_COND_T_IN_PTHREAD_H)
+    add_bool( "rt-priority", VLC_FALSE, NULL, RT_PRIORITY_TEXT,
               RT_PRIORITY_LONGTEXT, VLC_TRUE );
 #endif
 
index e9b0c7deaddab98501d296647a5c0351240d4224..dbe7c590f3995009e67c1514eaf960d8092650f1 100644 (file)
@@ -577,9 +577,7 @@ int __vlc_thread_create( vlc_object_t *p_this, char * psz_file, int i_line,
         struct sched_param param;
 
         memset( &param, 0, sizeof(struct sched_param) );
-#if !defined(SYS_BEOS) && defined(PTHREAD_COND_T_IN_PTHREAD_H)
         i_priority += config_GetInt( p_this, "rt-offset" );
-#endif
         if( i_priority <= 0 )
         {
             param.sched_priority = (-1) * i_priority;