[vlc-commits] macosx: fixed crash due to race condition on launch

Felix Paul Kühne git at videolan.org
Mon Oct 1 23:38:50 CEST 2012


vlc | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Mon Oct  1 23:38:37 2012 +0200| [8ef447a49d49598e5b022c4b2f03a3b8a6a24d98] | committer: Felix Paul Kühne

macosx: fixed crash due to race condition on launch

The main window may be asked to update its content prior to VLCFSPanel being fully initialized

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

 modules/gui/macosx/MainWindow.m |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/modules/gui/macosx/MainWindow.m b/modules/gui/macosx/MainWindow.m
index 98fc6ff..d9986f0 100644
--- a/modules/gui/macosx/MainWindow.m
+++ b/modules/gui/macosx/MainWindow.m
@@ -698,7 +698,8 @@ static VLCMainWindow *_o_sharedInstance = nil;
     }
 
     [self updateTimeSlider];
-    [o_fspanel setSeekable: b_seekable];
+    if ([o_fspanel respondsToSelector:@selector(setSeekable:)])
+        [o_fspanel setSeekable: b_seekable];
 
     PL_LOCK;
     if ([[[VLCMain sharedInstance] playlist] currentPlaylistRoot] != p_playlist->p_local_category || p_playlist->p_local_category->i_children > 0)



More information about the vlc-commits mailing list