[vlc-commits] macosx: actually deploying a callback helps if you are interested in the info it gives (refs #9960)

Felix Paul Kühne git at videolan.org
Wed Jul 23 21:57:51 CEST 2014


vlc/vlc-2.2 | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Sun Jul 20 17:42:34 2014 +0200| [0f2a3f338e4d552b1a1f6f5220cca6224931c864] | committer: Felix Paul Kühne

macosx: actually deploying a callback helps if you are interested in the info it gives (refs #9960)

(cherry picked from commit e1fac2f2c9ba9e5aa9423b33239d31d4916954fa)

> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.2.git/?a=commit;h=0f2a3f338e4d552b1a1f6f5220cca6224931c864
---

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

diff --git a/modules/gui/macosx/intf.m b/modules/gui/macosx/intf.m
index 649e9f9..880219b 100644
--- a/modules/gui/macosx/intf.m
+++ b/modules/gui/macosx/intf.m
@@ -659,7 +659,7 @@ static VLCMain *_o_sharedMainInstance = nil;
     var_AddCallback(p_intf->p_libvlc, "intf-toggle-fscontrol", ShowController, self);
     var_AddCallback(p_intf->p_libvlc, "intf-show", ShowController, self);
     var_AddCallback(p_intf->p_libvlc, "intf-boss", BossCallback, self);
-    //    var_AddCallback(p_playlist, "item-change", PLItemChanged, self);
+    var_AddCallback(p_playlist, "item-change", PLItemChanged, self);
     var_AddCallback(p_playlist, "activity", PLItemChanged, self);
     var_AddCallback(p_playlist, "leaf-to-parent", PlaylistUpdated, self);
     var_AddCallback(p_playlist, "playlist-item-append", PlaylistUpdated, self);
@@ -831,7 +831,7 @@ static bool f_appExit = false;
     var_DelCallback(p_intf, "dialog-login", DialogCallback, self);
     var_DelCallback(p_intf, "dialog-question", DialogCallback, self);
     var_DelCallback(p_intf, "dialog-progress-bar", DialogCallback, self);
-    //var_DelCallback(p_playlist, "item-change", PLItemChanged, self);
+    var_DelCallback(p_playlist, "item-change", PLItemChanged, self);
     var_DelCallback(p_playlist, "activity", PLItemChanged, self);
     var_DelCallback(p_playlist, "leaf-to-parent", PlaylistUpdated, self);
     var_DelCallback(p_playlist, "playlist-item-append", PlaylistUpdated, self);
@@ -1298,6 +1298,7 @@ static bool f_appExit = false;
     [self updateDelays];
     [self updateMainMenu];
     [[self bookmarks] refresh];
+    [self playlistUpdated];
 
     /*
      * Due to constraints within NSAttributedString's main loop runtime handling



More information about the vlc-commits mailing list