summaryrefslogtreecommitdiffstats
path: root/audio/sink.c
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@nokia.com>2007-08-24 12:15:20 +0000
committerJohan Hedberg <johan.hedberg@nokia.com>2007-08-24 12:15:20 +0000
commit666938b54d631956826343ed278e2af4b982fc29 (patch)
tree90828ce9054d431a304bda457ac392cd3798bd9e /audio/sink.c
parentc3cd59ae39ebb53e27ddd99ee48f1875bd480c1d (diff)
Support up to two simultaneous streams
Diffstat (limited to 'audio/sink.c')
-rw-r--r--audio/sink.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/audio/sink.c b/audio/sink.c
index 8141eff5..0dc12eb3 100644
--- a/audio/sink.c
+++ b/audio/sink.c
@@ -149,11 +149,13 @@ static void stream_setup_complete(struct avdtp *session, struct device *dev,
DBusMessage *reply;
reply = dbus_message_new_method_return(pending->msg);
send_message_and_unref(pending->conn, reply);
+ debug("Stream successfully created");
}
else {
err_failed(pending->conn, pending->msg, "Stream setup failed");
avdtp_unref(sink->session);
sink->session = NULL;
+ debug("Stream setup failed");
}
pending_request_free(pending);
@@ -186,7 +188,7 @@ static DBusHandlerResult sink_connect(DBusConnection *conn,
sink->connect = pending;
id = a2dp_source_request_stream(sink->session, dev, FALSE,
- stream_setup_complete, pending);
+ stream_setup_complete, pending, NULL);
if (id == 0) {
pending_request_free(pending);
sink->connect = NULL;
@@ -196,6 +198,8 @@ static DBusHandlerResult sink_connect(DBusConnection *conn,
"Failed to request a stream");
}
+ debug("stream creation in progress");
+
pending->id = id;
return DBUS_HANDLER_RESULT_HANDLED;