DBus : missing return argument for AddTrack
authorRafaël Carré <funman@videolan.org>
Tue, 13 May 2008 06:02:44 +0000 (08:02 +0200)
committerRafaël Carré <funman@videolan.org>
Tue, 13 May 2008 06:03:01 +0000 (08:03 +0200)
modules/control/dbus.c
modules/control/dbus.h

index c8075a1..e5ba856 100644 (file)
@@ -382,6 +382,7 @@ DBUS_METHOD( Identity )
 DBUS_METHOD( AddTrack )
 { /* add the string to the playlist, and play it if the boolean is true */
     REPLY_INIT;
+    OUT_ARGUMENTS;
 
     DBusError error;
     dbus_error_init( &error );
@@ -409,6 +410,9 @@ DBUS_METHOD( AddTrack )
             PLAYLIST_END, true, false );
     pl_Release( p_playlist );
 
+    dbus_int32_t i_success = 0;
+    ADD_INT32( &i_success );
+
     REPLY_SEND;
 }
 
index df74bc3..40dfde1 100644 (file)
@@ -177,6 +177,7 @@ const char* psz_introspection_xml_data_tracklist =
 "    <method name=\"AddTrack\">\n"
 "      <arg type=\"s\" direction=\"in\" />\n"
 "      <arg type=\"b\" direction=\"in\" />\n"
+"      <arg type=\"i\" direction=\"out\" />\n"
 "    </method>\n"
 "    <method name=\"DelTrack\">\n"
 "      <arg type=\"i\" direction=\"in\" />\n"