]> git.sesse.net Git - vlc/commitdiff
MacOS: remove some callbacks
authorJean-Baptiste Kempf <jb@videolan.org>
Sun, 9 Oct 2011 22:49:29 +0000 (00:49 +0200)
committerJean-Baptiste Kempf <jb@videolan.org>
Sun, 9 Oct 2011 22:49:29 +0000 (00:49 +0200)
Ref: #5427

modules/gui/macosx/intf.m

index 2626729d34e608312fe42f232de8a8b6fbcc71d0..f6eea48bbe2e42d38eefa1713f802393bb161386 100644 (file)
@@ -557,7 +557,7 @@ static VLCMain *_o_sharedMainInstance = nil;
 
     val.b_bool = false;
 
-    var_AddCallback( p_playlist, "fullscreen", FullscreenChanged, self);
+    var_AddCallback(p_playlist, "fullscreen", FullscreenChanged, self);
     var_AddCallback( p_intf->p_libvlc, "intf-toggle-fscontrol", ShowController, self);
 //    var_AddCallback(p_playlist, "item-change", PLItemChanged, self);
     var_AddCallback(p_playlist, "item-current", PLItemChanged, self);
@@ -701,6 +701,8 @@ static VLCMain *_o_sharedMainInstance = nil;
     var_DelCallback(p_playlist, "loop", PlaybackModeUpdated, self);
     var_DelCallback(p_playlist, "volume", VolumeUpdated, self);
     var_DelCallback(p_playlist, "mute", VolumeUpdated, self);
+    var_DelCallback(p_playlist, "fullscreen", FullscreenChanged, self);
+    var_DelCallback(p_intf->p_libvlc, "intf-toggle-fscontrol", ShowController, self);
 
     /* remove global observer watching for vout device changes correctly */
     [[NSNotificationCenter defaultCenter] removeObserver: self];