Commit bf916c35 authored by David Fuhrmann's avatar David Fuhrmann

macosx: fix another rare crash on exit

parent 9fe9e33b
...@@ -767,6 +767,7 @@ static VLCMain *_o_sharedMainInstance = nil; ...@@ -767,6 +767,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 );
...@@ -1706,8 +1707,11 @@ unsigned int CocoaKeyToVLC( unichar i_key ) ...@@ -1706,8 +1707,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