[vlc-commits] dbus: Fix the tracklist's PropertyChanged signal

Mirsal Ennaime git at videolan.org
Tue Jun 7 20:08:01 CEST 2011


vlc | branch: master | Mirsal Ennaime <mirsal at mirsal.fr> | Tue Jun  7 18:14:16 2011 +0200| [1d43feaafe63d78ad5be78b766fdde924b4f15b5] | committer: Mirsal Ennaime

dbus: Fix the tracklist's PropertyChanged signal

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

 modules/control/dbus/dbus.c           |    2 +-
 modules/control/dbus/dbus_tracklist.c |    3 ++-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/modules/control/dbus/dbus.c b/modules/control/dbus/dbus.c
index a6d6b90..d27590e 100644
--- a/modules/control/dbus/dbus.c
+++ b/modules/control/dbus/dbus.c
@@ -632,7 +632,7 @@ static void ProcessEvents( intf_thread_t *p_intf,
         PlayerPropertiesChangedEmit( p_intf, &player_properties );
 
     if( vlc_dictionary_keys_count( &tracklist_properties ) )
-        TrackListPropertiesChangedEmit( p_intf, &player_properties );
+        TrackListPropertiesChangedEmit( p_intf, &tracklist_properties );
 
     vlc_dictionary_clear( &player_properties,    NULL, NULL );
     vlc_dictionary_clear( &tracklist_properties, NULL, NULL );
diff --git a/modules/control/dbus/dbus_tracklist.c b/modules/control/dbus/dbus_tracklist.c
index d8e6e08..c408845 100644
--- a/modules/control/dbus/dbus_tracklist.c
+++ b/modules/control/dbus/dbus_tracklist.c
@@ -388,7 +388,8 @@ PropertiesChangedSignal( intf_thread_t    *p_intf,
 
     for( int i = 0; i < i_properties; i++ )
         if( !strcmp( ppsz_properties[i], "Tracks" ) )
-            dbus_message_iter_append_basic( &entry, DBUS_TYPE_STRING,
+            dbus_message_iter_append_basic( &invalidated_properties,
+                                            DBUS_TYPE_STRING,
                                             &ppsz_properties[i] );
 
     dbus_message_iter_close_container( &args, &invalidated_properties );



More information about the vlc-commits mailing list