[vlc-devel] commit: DBus : missing return argument for AddTrack ( Rafaël Carré )

git version control git at videolan.org
Tue May 13 08:01:48 CEST 2008


vlc | branch: master | Rafaël Carré <funman at videolan.org> | Tue May 13 08:02:44 2008 +0200| [2828d7d1b3f14983d09f5cfb12b4ce13c8b827ed]

DBus : missing return argument for AddTrack

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

 modules/control/dbus.c |    4 ++++
 modules/control/dbus.h |    1 +
 2 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/modules/control/dbus.c b/modules/control/dbus.c
index c8075a1..e5ba856 100644
--- a/modules/control/dbus.c
+++ b/modules/control/dbus.c
@@ -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;
 }
 
diff --git a/modules/control/dbus.h b/modules/control/dbus.h
index df74bc3..40dfde1 100644
--- a/modules/control/dbus.h
+++ b/modules/control/dbus.h
@@ -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"




More information about the vlc-devel mailing list