[vlc-commits] macosx: update play and playback mode status on startup

2015-04-11 Thread David Fuhrmann
vlc/vlc-2.2 | branch: master | David Fuhrmann  | 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 

> 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);

___
vlc-commits mailing list
vlc-commits@videolan.org
https://mailman.videolan.org/listinfo/vlc-commits


[vlc-commits] macosx: update play and playback mode status on startup

2015-04-11 Thread David Fuhrmann
vlc | branch: master | David Fuhrmann  | 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);

___
vlc-commits mailing list
vlc-commits@videolan.org
https://mailman.videolan.org/listinfo/vlc-commits