[vlc-devel] [PATCH] macosx vout: update display after crop / ar even if "macosx-video-autoresize" is false

David Fuhrmann david.fuhrmann at googlemail.com
Tue Feb 14 08:28:31 CET 2012


---
 modules/video_output/macosx.m |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/modules/video_output/macosx.m b/modules/video_output/macosx.m
index 0c9072f..97670d9 100644
--- a/modules/video_output/macosx.m
+++ b/modules/video_output/macosx.m
@@ -337,11 +337,12 @@ static int Control (vout_display_t *vd, int query, va_list ap)
             return VLC_SUCCESS;
         case VOUT_DISPLAY_CHANGE_DISPLAY_SIZE:
         {
+            // is needed in the case we do not an actual resize
+            [sys->glView performSelectorOnMainThread:@selector(reshapeView:) withObject:nil waitUntilDone:NO];
+
             if (!config_GetInt( vd, "macosx-video-autoresize" ))
                 return VLC_SUCCESS;
 
-            [sys->glView performSelectorOnMainThread:@selector(reshapeView:) withObject:nil waitUntilDone:NO];
-
             NSAutoreleasePool * o_pool = [[NSAutoreleasePool alloc] init];
             NSPoint topleftbase;
             NSPoint topleftscreen;
-- 
1.7.5.4




More information about the vlc-devel mailing list