[vlc-commits] macosx: do not enforce AR if video view is hidden
David Fuhrmann
git at videolan.org
Thu Feb 27 17:47:43 CET 2014
vlc | branch: master | David Fuhrmann <david.fuhrmann at googlemail.com> | Wed Feb 26 18:30:48 2014 +0100| [4bec749d2a8b362d0be73195ce5916d32920c73f] | committer: David Fuhrmann
macosx: do not enforce AR if video view is hidden
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=4bec749d2a8b362d0be73195ce5916d32920c73f
---
modules/gui/macosx/Windows.m | 3 +++
1 file changed, 3 insertions(+)
diff --git a/modules/gui/macosx/Windows.m b/modules/gui/macosx/Windows.m
index cad88fd..2c56cc5 100644
--- a/modules/gui/macosx/Windows.m
+++ b/modules/gui/macosx/Windows.m
@@ -576,6 +576,9 @@
if (b_in_fullscreen_transition || [self fullscreen])
return proposedFrameSize;
+ if ([o_video_view isHidden])
+ return proposedFrameSize;
+
if ([[VLCCoreInteraction sharedInstance] aspectRatioIsLocked]) {
NSRect videoWindowFrame = [self frame];
NSRect viewRect = [o_video_view convertRect:[o_video_view bounds] toView: nil];
More information about the vlc-commits
mailing list