summaryrefslogtreecommitdiffstats
path: root/audio/sink.c
diff options
context:
space:
mode:
Diffstat (limited to 'audio/sink.c')
-rw-r--r--audio/sink.c9
1 files changed, 6 insertions, 3 deletions
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 {