[vlc-commits] macosx: update play and playback mode status on	startup
    David Fuhrmann 
    git at videolan.org
       
    Sat Apr 11 16:56:20 CEST 2015
    
    
  
vlc | branch: master | David Fuhrmann <dfuhrmann at videolan.org> | Sat Apr 11 16:21:57 2015 +0200| [5598f816905d5262928650c38d6b9a501b232deb] | committer: David Fuhrmann
macosx: update play and playback mode status on startup
Because the playback might have been started before the interface
registeres its callbacks, set the state manually.
close #14046
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=5598f816905d5262928650c38d6b9a501b232deb
---
 modules/gui/macosx/intf.m |    7 +++++++
 1 file changed, 7 insertions(+)
diff --git a/modules/gui/macosx/intf.m b/modules/gui/macosx/intf.m
index 7ff668c..1e283aa 100644
--- a/modules/gui/macosx/intf.m
+++ b/modules/gui/macosx/intf.m
@@ -798,6 +798,13 @@ static VLCMain *_o_sharedMainInstance = nil;
     [o_mainwindow updateTimeSlider];
     [o_mainwindow updateVolumeSlider];
 
+    /* Hack: Playlist is started before the interface.
+     * Thus, call additional updaters as we might miss these events if posted before
+     * the callbacks are registered.
+     */
+    [self PlaylistItemChanged];
+    [self playbackModeUpdated];
+
     // respect playlist-autostart
     // note that PLAYLIST_PLAY will not stop any playback if already started
     playlist_t * p_playlist = pl_Get(VLCIntf);
    
    
More information about the vlc-commits
mailing list