vlc | branch: master | Felix Paul Kühne <[email protected]> | Sat Feb  4 
17:14:36 2012 +0100| [da2ee7c7c0820dff6dce29274fe213b1a4279c1b] | committer: 
Felix Paul Kühne

macosx: force some more methods to run on the main thread (refs #5779)

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=da2ee7c7c0820dff6dce29274fe213b1a4279c1b
---

 modules/gui/macosx/intf.m |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/modules/gui/macosx/intf.m b/modules/gui/macosx/intf.m
index 7d906dc..d1b465c 100644
--- a/modules/gui/macosx/intf.m
+++ b/modules/gui/macosx/intf.m
@@ -295,7 +295,7 @@ static int InputEvent( vlc_object_t *p_this, const char 
*psz_var,
             break;
 
         case INPUT_EVENT_ITEM_NAME:
-            [[VLCMain sharedInstance] updateName];
+            [[VLCMain sharedInstance] 
performSelectorOnMainThread:@selector(updateName) withObject: nil 
waitUntilDone:NO];
             [[VLCMain sharedInstance] 
performSelectorOnMainThread:@selector(playlistUpdated) withObject: nil 
waitUntilDone:NO];
             break;
 
@@ -305,12 +305,12 @@ static int InputEvent( vlc_object_t *p_this, const char 
*psz_var,
             break;
 
         case INPUT_EVENT_DEAD:
-            [[VLCMain sharedInstance] updateName];
+            [[VLCMain sharedInstance] 
performSelectorOnMainThread:@selector(updateName) withObject: nil 
waitUntilDone:NO];
             [[VLCMain sharedInstance] 
performSelectorOnMainThread:@selector(updatePlaybackPosition) withObject:nil 
waitUntilDone:NO];
             break;
 
         case INPUT_EVENT_ABORT:
-            [[VLCMain sharedInstance] updateName];
+            [[VLCMain sharedInstance] 
performSelectorOnMainThread:@selector(updateName) withObject: nil 
waitUntilDone:NO];
             [[VLCMain sharedInstance] 
performSelectorOnMainThread:@selector(updatePlaybackPosition) withObject:nil 
waitUntilDone:NO];
             break;
 
@@ -347,7 +347,7 @@ static int PlaybackModeUpdated( vlc_object_t *p_this, const 
char *psz_var,
                          vlc_value_t oldval, vlc_value_t new_val, void *param )
 {
     NSAutoreleasePool * o_pool = [[NSAutoreleasePool alloc] init];
-    [[VLCMain sharedInstance] playbackModeUpdated];
+    [[VLCMain sharedInstance] 
performSelectorOnMainThread:@selector(playbackModeUpdated) withObject:nil 
waitUntilDone:NO];
 
     [o_pool release];
     return VLC_SUCCESS;
@@ -399,7 +399,7 @@ static int FullscreenChanged( vlc_object_t *p_this, const 
char *psz_variable,
     if (p_intf)
     {
         NSAutoreleasePool *o_pool = [[NSAutoreleasePool alloc] init];
-        [[VLCMain sharedInstance] fullscreenChanged];
+        [[VLCMain sharedInstance] 
performSelectorOnMainThread:@selector(fullscreenChanged) withObject:nil 
waitUntilDone:NO];
         [o_pool release];
     }
     return VLC_SUCCESS;

_______________________________________________
vlc-commits mailing list
[email protected]
http://mailman.videolan.org/listinfo/vlc-commits

Reply via email to