From f269e27ce7e39e6484cf02a137dcda7458a7fd85 Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Fri, 6 Jun 2008 10:20:21 +0000 Subject: Fix the last remains of sending helpers --- audio/sink.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'audio/sink.c') diff --git a/audio/sink.c b/audio/sink.c index 9027cd74..3b5447db 100644 --- a/audio/sink.c +++ b/audio/sink.c @@ -96,7 +96,8 @@ static void stream_state_changed(struct avdtp_stream *stream, sink->disconnect = NULL; reply = dbus_message_new_method_return(p->msg); - send_message_and_unref(p->conn, reply); + dbus_connection_send(p->conn, reply, NULL); + dbus_message_unref(reply); pending_request_free(p); } @@ -144,7 +145,8 @@ static gboolean stream_setup_retry(gpointer user_data) DBusMessage *reply; debug("Stream successfully created, after XCASE connect:connect"); reply = dbus_message_new_method_return(pending->msg); - send_message_and_unref(pending->conn, reply); + dbus_connection_send(pending->conn, reply, NULL); + dbus_message_unref(reply); } else { debug("Stream setup failed, after XCASE connect:connect"); error_failed(pending->conn, pending->msg, "Stream setup failed"); @@ -169,7 +171,8 @@ static void stream_setup_complete(struct avdtp *session, struct a2dp_sep *sep, DBusMessage *reply; sink->connect = NULL; reply = dbus_message_new_method_return(pending->msg); - send_message_and_unref(pending->conn, reply); + dbus_connection_send(pending->conn, reply, NULL); + dbus_message_unref(reply); pending_request_free(pending); debug("Stream successfully created"); } else { -- cgit