[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:16:35 CET 2012


vlc/vlc-1.2 | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Fri Jan  6 20:14:58 2012 +0100| [eac12c57d6cd72ef05c7d7473bf1ab2cb5bbc6ee] | committer: Jean-Baptiste Kempf

macosx: fixed rare crash when reshaping the video view (fixes #5740)
(cherry picked from commit 52eae1b9ed74a3dbcd0ff39345c4da3316fa587c)

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

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

 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