]> git.sesse.net Git - vlc/commitdiff
* src/libvlc.c, src/misc/threads.c: couple of fixes for thread priorities.
authorGildas Bazin <gbazin@videolan.org>
Sun, 24 Oct 2004 21:07:58 +0000 (21:07 +0000)
committerGildas Bazin <gbazin@videolan.org>
Sun, 24 Oct 2004 21:07:58 +0000 (21:07 +0000)
src/libvlc.c
src/misc/threads.c

index 6d479422ee89c594557b2371d74377bca4b03eb0..9b378c5e95159c9d666dcd590bb385469f6e37f2 100644 (file)
@@ -211,7 +211,6 @@ int VLC_Create( void )
         return VLC_EGENERIC;
     }
     p_vlc->thread_id = 0;
-    vlc_thread_set_priority( p_vlc, VLC_THREAD_PRIORITY_LOW );
 
     p_vlc->psz_object_name = "root";
 
@@ -219,6 +218,7 @@ int VLC_Create( void )
     vlc_mutex_init( p_vlc, &p_vlc->config_lock );
 #ifdef SYS_DARWIN
     vlc_mutex_init( p_vlc, &p_vlc->quicktime_lock );
+    vlc_thread_set_priority( p_vlc, VLC_THREAD_PRIORITY_LOW );
 #endif
 
     /* Store our newly allocated structure in the global list */
index 33d3a0dd09758766357f2d5ab35cdf3e5937c16a..977b3666505632a9ad6d3b00f4b4e9d94bdbff9a 100644 (file)
@@ -587,10 +587,12 @@ int __vlc_thread_create( vlc_object_t *p_this, char * psz_file, int i_line,
             i_priority = 0;
         }
     }
+#ifndef SYS_DARWIN
     else
     {
         i_priority = 0;
     }
+#endif
 
 #elif defined( HAVE_CTHREADS_H )
     p_this->thread_id = cthread_fork( (cthread_fn_t)func, (any_t)p_data );