Commit 97287369 authored by David Fuhrmann's avatar David Fuhrmann

macosx: fix another rare crash on exit

(cherry picked from commit bf916c3520997102ff862887065ec38f93efada2)
Signed-off-by: default avatarDavid Fuhrmann <david.fuhrmann@googlemail.com>
parent 24dcfefb
...@@ -766,6 +766,7 @@ static VLCMain *_o_sharedMainInstance = nil; ...@@ -766,6 +766,7 @@ static VLCMain *_o_sharedMainInstance = nil;
[o_coredialogs release]; [o_coredialogs release];
[o_eyetv release]; [o_eyetv release];
[o_mainwindow release]; [o_mainwindow release];
o_mainwindow = NULL;
/* unsubscribe from libvlc's debug messages */ /* unsubscribe from libvlc's debug messages */
vlc_Unsubscribe( p_intf->p_sys->p_sub ); vlc_Unsubscribe( p_intf->p_sys->p_sub );
...@@ -1705,8 +1706,11 @@ unsigned int CocoaKeyToVLC( unichar i_key ) ...@@ -1705,8 +1706,11 @@ unsigned int CocoaKeyToVLC( unichar i_key )
- (void)setActiveVideoPlayback:(BOOL)b_value - (void)setActiveVideoPlayback:(BOOL)b_value
{ {
b_active_videoplayback = b_value; b_active_videoplayback = b_value;
[o_mainwindow performSelectorOnMainThread:@selector(setVideoplayEnabled) withObject: nil waitUntilDone:NO]; if( o_mainwindow )
[o_mainwindow performSelectorOnMainThread:@selector(togglePlaylist:) withObject: nil waitUntilDone:NO]; {
[o_mainwindow performSelectorOnMainThread:@selector(setVideoplayEnabled) withObject:nil waitUntilDone:NO];
[o_mainwindow performSelectorOnMainThread:@selector(togglePlaylist:) withObject:nil waitUntilDone:NO];
}
} }
- (BOOL)activeVideoPlayback - (BOOL)activeVideoPlayback
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment