]> git.sesse.net Git - vlc/commitdiff
Fixed interface freezes in the OS X interface.
authorChristophe Massiot <massiot@videolan.org>
Thu, 6 Feb 2003 23:55:29 +0000 (23:55 +0000)
committerChristophe Massiot <massiot@videolan.org>
Thu, 6 Feb 2003 23:55:29 +0000 (23:55 +0000)
include/vlc_threads.h
modules/gui/macosx/intf.m
src/input/input_ext-plugins.c

index 2c8b9597b949f51fe87ed210794b868417787771..ef9def6e919d4b7c7aefe06b6e3e9ff695783c8a 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.27 2003/02/06 21:39:34 titer Exp $
+ * $Id: vlc_threads.h,v 1.28 2003/02/06 23:55:28 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 31
+#   define VLC_THREAD_PRIORITY_LOW 32
 #   define VLC_THREAD_PRIORITY_INPUT 34
 #   define VLC_THREAD_PRIORITY_AUDIO 35
-#   define VLC_THREAD_PRIORITY_VIDEO 32
+#   define VLC_THREAD_PRIORITY_VIDEO 31
 #   define VLC_THREAD_PRIORITY_OUTPUT 33
 
 #elif defined(WIN32) || defined(UNDER_CE)
index 56af99402d6909735fedb5fd5b761284c8ba1103..2b36805f40260466dad52c61d4159f6e0d4e075b 100644 (file)
@@ -2,7 +2,7 @@
  * intf.m: MacOS X interface plugin
  *****************************************************************************
  * Copyright (C) 2002-2003 VideoLAN
- * $Id: intf.m,v 1.46 2003/02/05 16:23:06 hartman Exp $
+ * $Id: intf.m,v 1.47 2003/02/06 23:55:28 massiot Exp $
  *
  * Authors: Jon Lech Johansen <jon-vl@nanocrew.net>
  *          Christophe Massiot <massiot@via.ecp.fr>
@@ -360,7 +360,7 @@ int ExecuteOnMainThread( id target, SEL sel, void * p_arg )
         addPort: p_intf->p_sys->o_sendport
         forMode: NSDefaultRunLoopMode];
 
-    [NSTimer scheduledTimerWithTimeInterval: 0.1
+    [NSTimer scheduledTimerWithTimeInterval: 0.5
         target: self selector: @selector(manageIntf:)
         userInfo: nil repeats: TRUE];
 
@@ -405,7 +405,7 @@ int ExecuteOnMainThread( id target, SEL sel, void * p_arg )
 
         vlc_mutex_unlock( &p_intf->change_lock );
 
-        o_sleep_date = [NSDate dateWithTimeIntervalSinceNow: 0.1];
+        o_sleep_date = [NSDate dateWithTimeIntervalSinceNow: .5];
         [NSThread sleepUntilDate: o_sleep_date];
     }
 
index 9e307f29e5f1e7ac1fdf95b7c847c9c619628e0e..62a0e578ff286658c86a45486cd20eb7e6059d74 100644 (file)
@@ -2,7 +2,7 @@
  * input_ext-plugins.c: useful functions for access and demux plug-ins
  *****************************************************************************
  * Copyright (C) 2001, 2002 VideoLAN
- * $Id: input_ext-plugins.c,v 1.27 2003/01/25 03:12:20 fenrir Exp $
+ * $Id: input_ext-plugins.c,v 1.28 2003/02/06 23:55:29 massiot Exp $
  *
  * Authors: Christophe Massiot <massiot@via.ecp.fr>
  *
@@ -145,7 +145,7 @@ void input_BuffersEnd( input_thread_t * p_input, input_buffers_t * p_buffers )
 
         if( p_buffers->i_allocated )
         {
-            msg_Err( p_input, "%d bytes have not been freed, "
+            msg_Err( p_input, "%u bytes have not been freed, "
                               "expect memory leak", p_buffers->i_allocated );
         }