diff options
Diffstat (limited to 'audio/sink.c')
-rw-r--r-- | audio/sink.c | 6 |
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; |