OSDN Git Service

audio/media: Make use of g_dbus_send_message_with_reply
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Mon, 19 Aug 2013 12:45:11 +0000 (15:45 +0300)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Mon, 9 Sep 2013 14:35:30 +0000 (17:35 +0300)
This replaces dbus_connection_send_with_reply with
g_dbus_send_message_with_reply which does not alter message order.

profiles/audio/media.c

index 5a06b99..9c72b8d 100644 (file)
@@ -325,7 +325,7 @@ static gboolean media_endpoint_async_call(DBusMessage *msg,
        request = g_new0(struct endpoint_request, 1);
 
        /* Timeout should be less than avdtp request timeout (4 seconds) */
-       if (dbus_connection_send_with_reply(btd_get_dbus_connection(),
+       if (g_dbus_send_message_with_reply(btd_get_dbus_connection(),
                                                msg, &request->call,
                                                REQUEST_TIMEOUT) == FALSE) {
                error("D-Bus send failed");