- (void)closeVout
{
+ [[[[VLCMain sharedInstance] getControls] getFSPanel] fadeOut];
+
[o_view removeFromSuperview];
o_view = nil;
p_vout = NULL;
s_frame = nil;
o_window = nil;
- p_real_vout = NULL;
+ p_real_vout = NULL;
}
- (void)updateTitle
p_real_vout = [VLCVoutView getRealVout: p_vout];
i_device = var_GetInteger( p_real_vout->p_libvlc, "video-device" );
b_black = var_GetBool( p_vout, "macosx-black" );
+ b_embedded = var_GetBool( p_vout, "macosx-embedded" );
/* Find out on which screen to open the window */
if( i_device <= 0 || i_device > (int)[o_screens count] )
[o_view closeVout];
}
-- (void) closeWindow
+- (void)closeWindow
{
/* XXX waitUntilDone = NO to avoid a possible deadlock when hitting
Command-Q */
withObject: NULL waitUntilDone: NO];
}
-- (id) closeReal: (id) sender
+- (id)closeReal:(id)sender
{
if( b_black == VLC_TRUE )
{
}
SetSystemUIMode( kUIModeNormal, 0);
[super close];
+ /* this does only work in embedded mode */
+ if( b_embedded == VLC_TRUE )
+ [[[[VLCMain sharedInstance] getControls] getFSPanel] orderOut: self];
+
return NULL;
}