[vlc-devel] [PATCH] macosx: fix white fullscreen when video ended (close #6288)

David Fuhrmann david.fuhrmann at googlemail.com
Thu Mar 1 22:12:08 CET 2012


---
 modules/gui/macosx/MainWindow.h |    1 +
 modules/gui/macosx/MainWindow.m |    6 +++++-
 modules/gui/macosx/intf.m       |    2 +-
 3 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/modules/gui/macosx/MainWindow.h b/modules/gui/macosx/MainWindow.h
index 9bc63b2..015d418 100644
--- a/modules/gui/macosx/MainWindow.h
+++ b/modules/gui/macosx/MainWindow.h
@@ -158,6 +158,7 @@
 - (void)drawFancyGradientEffectForTimeSlider;
 
 - (id)videoView;
+- (id)setupVideoView;
 - (void)setVideoplayEnabled;
 - (void)resizeWindow;
 - (void)setNativeVideoSize:(NSSize)size;
diff --git a/modules/gui/macosx/MainWindow.m b/modules/gui/macosx/MainWindow.m
index 8a1d989..22b673c 100644
--- a/modules/gui/macosx/MainWindow.m
+++ b/modules/gui/macosx/MainWindow.m
@@ -1273,9 +1273,13 @@ static VLCMainWindow *_o_sharedInstance = nil;
 
 #pragma mark -
 #pragma mark Video Output handling
-
 - (id)videoView
 {
+    return o_video_view;
+}
+
+- (id)setupVideoView
+{
     vout_thread_t *p_vout = getVout();
     if (config_GetInt( VLCIntf, "embedded-video" ))
     {
diff --git a/modules/gui/macosx/intf.m b/modules/gui/macosx/intf.m
index 128ea33..9349fc4 100644
--- a/modules/gui/macosx/intf.m
+++ b/modules/gui/macosx/intf.m
@@ -1635,7 +1635,7 @@ unsigned int CocoaKeyToVLC( unichar i_key )
 
 - (id)getVideoViewAtPositionX: (int *)pi_x Y: (int *)pi_y withWidth: (unsigned int*)pi_width andHeight: (unsigned int*)pi_height
 {
-    id videoView = [o_mainwindow videoView];
+    id videoView = [o_mainwindow setupVideoView];
     NSRect videoRect = [videoView frame];
     int i_x = (int)videoRect.origin.x;
     int i_y = (int)videoRect.origin.y;
-- 
1.7.7.5 (Apple Git-26)




More information about the vlc-devel mailing list