Commit 2828d7d1 authored by Rafaël Carré's avatar Rafaël Carré

DBus : missing return argument for AddTrack

parent 8e18f5c6
......@@ -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;
}
......
......@@ -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"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment