[vlc-commits] macosx: fix initialization of nonembedded window

David Fuhrmann git at videolan.org
Sun Mar 8 17:49:19 CET 2015


vlc | branch: master | David Fuhrmann <dfuhrmann at videolan.org> | Sun Mar  8 17:49:01 2015 +0100| [58ce376272f179e6d9e1d70eda9fc7f517198597] | committer: David Fuhrmann

macosx: fix initialization of nonembedded window

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

 modules/gui/macosx/VLCVoutWindowController.m |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/modules/gui/macosx/VLCVoutWindowController.m b/modules/gui/macosx/VLCVoutWindowController.m
index 99b2192..9cf3a15 100644
--- a/modules/gui/macosx/VLCVoutWindowController.m
+++ b/modules/gui/macosx/VLCVoutWindowController.m
@@ -205,8 +205,9 @@
         [[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"



More information about the vlc-commits mailing list