vlc | branch: master | David Fuhrmann <david.fuhrm...@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];

_______________________________________________
vlc-commits mailing list
vlc-commits@videolan.org
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to