summaryrefslogtreecommitdiffstats
path: root/audio/sink.c
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2008-06-06 10:20:21 +0000
committerMarcel Holtmann <marcel@holtmann.org>2008-06-06 10:20:21 +0000
commitf269e27ce7e39e6484cf02a137dcda7458a7fd85 (patch)
tree6a88312826c2db34034ceca65afa9503a69a4f9e /audio/sink.c
parent5c4f688af6ad797033b233521cd75852602fa93d (diff)
Fix the last remains of sending helpers
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 {