[vlc-commits] macosx: fixed rare crash when reshaping the video view (fixes #5740)

Felix Paul Kühne git at videolan.org
Fri Jan 6 20:15:02 CET 2012


vlc | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Fri Jan  6 20:14:58 2012 +0100| [52eae1b9ed74a3dbcd0ff39345c4da3316fa587c] | committer: Felix Paul Kühne

macosx: fixed rare crash when reshaping the video view (fixes #5740)

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

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

diff --git a/modules/gui/macosx/intf.m b/modules/gui/macosx/intf.m
index 0256e1c..1ec3e07 100644
--- a/modules/gui/macosx/intf.m
+++ b/modules/gui/macosx/intf.m
@@ -1645,7 +1645,7 @@ unsigned int CocoaKeyToVLC( unichar i_key )
 {
     b_active_videoplayback = b_value;
     [o_mainwindow setVideoplayEnabled];
-    [o_mainwindow togglePlaylist:nil];
+    [o_mainwindow performSelectorOnMainThread:@selector(togglePlaylist:) withObject: nil waitUntilDone:NO];
 }
 
 - (BOOL)activeVideoPlayback



More information about the vlc-commits mailing list