[vlc-commits] macosx vout: update display after crop / ar even if " macosx-video-autoresize" is false
David Fuhrmann
git at videolan.org
Wed Feb 15 17:39:42 CET 2012
vlc | branch: master | David Fuhrmann <david.fuhrmann at googlemail.com> | Tue Feb 14 08:28:31 2012 +0100| [e6d4348b075ff923f03c82a35925f8410daa70ca] | committer: Felix Paul Kühne
macosx vout: update display after crop / ar even if "macosx-video-autoresize" is false
Signed-off-by: Felix Paul Kühne <fkuehne at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=e6d4348b075ff923f03c82a35925f8410daa70ca
---
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;
More information about the vlc-commits
mailing list