]> git.sesse.net Git - vlc/commitdiff
Dbus controler: Fix path for the TrackListChange signal.
authorRémi Duraffort <ivoire@videolan.org>
Thu, 14 Jan 2010 13:14:12 +0000 (14:14 +0100)
committerRémi Duraffort <ivoire@videolan.org>
Thu, 14 Jan 2010 13:14:12 +0000 (14:14 +0100)
Fix #3232

modules/control/dbus.c
modules/control/dbus.h

index 5a4018e289ca9daf2fc476420e1b4912d8f74797..71c6bffa58fa941696ab31d83311f411d8f28f61 100644 (file)
@@ -916,7 +916,7 @@ static int AllCallback( vlc_object_t *p_this, const char *psz_var,
  *****************************************************************************/
 DBUS_SIGNAL( CapsChangeSignal )
 {
-    SIGNAL_INIT( "CapsChange" );
+    SIGNAL_INIT( MPRIS_DBUS_PLAYER_PATH, "CapsChange" );
     OUT_ARGUMENTS;
 
     ADD_INT32( &((intf_thread_t*)p_data)->p_sys->i_caps );
@@ -928,7 +928,7 @@ DBUS_SIGNAL( CapsChangeSignal )
  *****************************************************************************/
 DBUS_SIGNAL( TrackListChangeSignal )
 { /* emit the new tracklist lengh */
-    SIGNAL_INIT("TrackListChange");
+    SIGNAL_INIT( MPRIS_DBUS_TRACKLIST_PATH, "TrackListChange");
     OUT_ARGUMENTS;
 
     /* XXX: locking */
@@ -975,7 +975,7 @@ static int TrackListChangeEmit( intf_thread_t *p_intf, int signal, int i_node )
 
 DBUS_SIGNAL( TrackChangeSignal )
 { /* emit the metadata of the new item */
-    SIGNAL_INIT( "TrackChange" );
+    SIGNAL_INIT( MPRIS_DBUS_PLAYER_PATH, "TrackChange" );
     OUT_ARGUMENTS;
 
     input_item_t *p_item = (input_item_t*) p_data;
@@ -990,7 +990,7 @@ DBUS_SIGNAL( TrackChangeSignal )
 
 DBUS_SIGNAL( StatusChangeSignal )
 { /* send the updated status info on the bus */
-    SIGNAL_INIT( "StatusChange" );
+    SIGNAL_INIT( MPRIS_DBUS_PLAYER_PATH, "StatusChange" );
     OUT_ARGUMENTS;
 
     /* we're called from a callback of input_thread_t, so it can not be
index 929588b8a54e62ad75e85e0b12a04f4cffa2fb35..43ec891b1401eca27f4565de1e7d78cc6a4c2ed4 100644 (file)
@@ -56,8 +56,8 @@
     dbus_message_unref( p_msg ); \
     return DBUS_HANDLER_RESULT_HANDLED
 
-#define SIGNAL_INIT( signal ) \
-    DBusMessage *p_msg = dbus_message_new_signal( MPRIS_DBUS_PLAYER_PATH, \
+#define SIGNAL_INIT( path, signal ) \
+    DBusMessage *p_msg = dbus_message_new_signal( path, \
         MPRIS_DBUS_INTERFACE, signal ); \
     if( !p_msg ) return DBUS_HANDLER_RESULT_NEED_MEMORY; \