]> git.sesse.net Git - vlc/commitdiff
macosx: fix initialization of nonembedded window
authorDavid Fuhrmann <dfuhrmann@videolan.org>
Sun, 8 Mar 2015 16:49:01 +0000 (17:49 +0100)
committerDavid Fuhrmann <dfuhrmann@videolan.org>
Sun, 8 Mar 2015 16:49:01 +0000 (17:49 +0100)
modules/gui/macosx/VLCVoutWindowController.m

index 99b2192dde7b16145940bdf11dfedc46230fb083..9cf3a15587554a3d9403cbbb749f531477046776 100644 (file)
         [[VLCMainWindow sharedInstance] changePlaylistState: psVideoStartedOrStoppedEvent];
 
     if (b_nonembedded) {
-        // event occurs before window is created, so call again
-        [[VLCMain sharedInstance] playlistUpdated];
+        // events might be posted before window is created, so call them again
+        [[VLCMain sharedInstance] updateName];
+        [[VLCMain sharedInstance] updateMainWindow]; // update controls bar
     }
 
     // TODO: find a cleaner way for "start in fullscreen"