[vlc-commits] dbus: remove write-only callback_info_t.i_node

Rémi Denis-Courmont git at videolan.org
Tue Nov 15 23:09:58 CET 2016


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Tue Nov 15 23:46:50 2016 +0200| [ce385e2711e5932c4ebf51d9c80b3a978c3f35d1] | committer: Rémi Denis-Courmont

dbus: remove write-only callback_info_t.i_node

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

 modules/control/dbus/dbus.c | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/modules/control/dbus/dbus.c b/modules/control/dbus/dbus.c
index 008a568..ef5b13d 100644
--- a/modules/control/dbus/dbus.c
+++ b/modules/control/dbus/dbus.c
@@ -91,7 +91,6 @@ static const DBusObjectPathVTable dbus_mpris_vtable = {
 typedef struct
 {
     int signal;
-    int i_node;
 } callback_info_t;
 
 enum
@@ -983,10 +982,7 @@ static int AllCallback( vlc_object_t *p_this, const char *psz_var,
     else if( !strcmp( "intf-change", psz_var ) )
         info.signal = SIGNAL_INTF_CHANGE;
     else if( !strcmp( "playlist-item-append", psz_var ) )
-    {
         info.signal = SIGNAL_PLAYLIST_ITEM_APPEND;
-        info.i_node = ((playlist_add_t*)newval.p_address)->i_node;
-    }
     else if( !strcmp( "playlist-item-deleted", psz_var ) )
         info.signal = SIGNAL_PLAYLIST_ITEM_DELETED;
     else if( !strcmp( "random", psz_var ) )



More information about the vlc-commits mailing list