[vlc-devel] commit: gui/macosx: Do not automatically resize the video view by calling scaleWindowWithFactor :animate: when it is embedded. (Sebastien Zwickert )

git version control git at videolan.org
Sat Dec 26 10:31:23 CET 2009


vlc | branch: master | Sebastien Zwickert <dilaroga at free.fr> | Fri Dec 25 21:23:00 2009 +0100| [be8909be21eb2ec7e7a2111396ef29d20095ee8f] | committer: Pierre d'Herbemont 

gui/macosx: Do not automatically resize the video view by calling scaleWindowWithFactor:animate: when it is embedded.

Signed-off-by: Pierre d'Herbemont <pdherbemont at free.fr>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=be8909be21eb2ec7e7a2111396ef29d20095ee8f
---

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

diff --git a/modules/gui/macosx/vout.m b/modules/gui/macosx/vout.m
index f333b20..ebc803a 100644
--- a/modules/gui/macosx/vout.m
+++ b/modules/gui/macosx/vout.m
@@ -969,7 +969,8 @@ int DeviceCallback( vlc_object_t *p_this, const char *psz_variable,
         if ([o_window isVisible] && (![o_window isFullscreen]))
             [o_window makeKeyAndOrderFront: self];
 
-        [self scaleWindowWithFactor: 1.0 animate: [o_window isVisible] && (![o_window isFullscreen])];
+        if ( [self window] != o_embeddedwindow )
+            [self scaleWindowWithFactor: 1.0 animate: [o_window isVisible] && (![o_window isFullscreen])];
 
         [o_embeddedwindow setVideoRatio:[self voutSizeForFactor:1.0]];
 




More information about the vlc-devel mailing list