]> git.sesse.net Git - vlc/commitdiff
Notify: add a callback to match telepathy, msn
authorJean-Baptiste Kempf <jb@videolan.org>
Fri, 22 Apr 2011 14:21:10 +0000 (16:21 +0200)
committerJean-Baptiste Kempf <jb@videolan.org>
Fri, 22 Apr 2011 14:21:10 +0000 (16:21 +0200)
modules/misc/notify/notify.c

index 198221c84d8d87d6a290b5e85c4715d81bbc3611..0dc494d07fc5f9e20de189da3dd00b647f82075c 100644 (file)
@@ -122,6 +122,7 @@ static int Open( vlc_object_t *p_this )
 
     /* */
     var_AddCallback( pl_Get( p_intf ), "item-current", ItemChange, p_intf );
+    var_AddCallback( pl_Get( p_intf ), "item-change", ItemChange, p_intf );
 
     return VLC_SUCCESS;
 }
@@ -135,6 +136,7 @@ static void Close( vlc_object_t *p_this )
     intf_sys_t      *p_sys  = p_intf->p_sys;
 
     var_DelCallback( pl_Get( p_this ), "item-current", ItemChange, p_this );
+    var_DelCallback( pl_Get( p_this ), "item-change", ItemChange, p_this );
 
     if( p_sys->notification )
     {