]> git.sesse.net Git - vlc/commitdiff
gui/macosx: Do not automatically resize the video view by calling scaleWindowWithFact...
authorSebastien Zwickert <dilaroga@free.fr>
Fri, 25 Dec 2009 20:23:00 +0000 (21:23 +0100)
committerPierre d'Herbemont <pdherbemont@free.fr>
Sat, 26 Dec 2009 09:31:20 +0000 (10:31 +0100)
Signed-off-by: Pierre d'Herbemont <pdherbemont@free.fr>
modules/gui/macosx/vout.m

index f333b208fc162e3ee85150fc43416310740a3cbf..ebc803af1470ff56f4e823802292cd69b5808040 100644 (file)
@@ -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];
 
         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]];
 
 
         [o_embeddedwindow setVideoRatio:[self voutSizeForFactor:1.0]];