[vlc-commits] macosx: update play and playback mode status on startup
David Fuhrmann
git at videolan.org
Sat Apr 11 18:31:45 CEST 2015
vlc/vlc-2.2 | branch: master | David Fuhrmann <dfuhrmann at videolan.org> | Sat Apr 11 16:21:57 2015 +0200| [04714baa6fac2b3fb6ad24f8fa1dbdb8603adc7c] | 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
(cherry picked from commit 5598f816905d5262928650c38d6b9a501b232deb)
Signed-off-by: David Fuhrmann <dfuhrmann at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.2.git/?a=commit;h=04714baa6fac2b3fb6ad24f8fa1dbdb8603adc7c
---
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 1e3f28f..1162c76 100644
--- a/modules/gui/macosx/intf.m
+++ b/modules/gui/macosx/intf.m
@@ -797,6 +797,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