]> git.sesse.net Git - vlc/commitdiff
macosx: only restore frame before playback in embedded case
authorDavid Fuhrmann <david.fuhrmann@googlemail.com>
Fri, 14 Sep 2012 18:09:09 +0000 (20:09 +0200)
committerDavid Fuhrmann <david.fuhrmann@googlemail.com>
Fri, 14 Sep 2012 18:09:09 +0000 (20:09 +0200)
modules/gui/macosx/MainWindow.m

index 23615b22d13b2e00b4a9feb9c0dd262451b8b7cb..fd6f506d10787dd425dc5ea298b21a2b329d7775 100644 (file)
@@ -1715,7 +1715,8 @@ static VLCMainWindow *_o_sharedInstance = nil;
         // look for 'start at fullscreen'
         [[VLCMain sharedInstance] fullscreenChanged];
     } else {
-        [[self animator] setFrame:frameBeforePlayback display:YES];
+        if (!b_nonembedded)
+            [[self animator] setFrame:frameBeforePlayback display:YES];
 
         [self makeFirstResponder: nil];
         [o_detached_video_window orderOut: nil];