summaryrefslogtreecommitdiffstats
path: root/audio/unix.c
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@nokia.com>2007-08-21 06:48:14 +0000
committerJohan Hedberg <johan.hedberg@nokia.com>2007-08-21 06:48:14 +0000
commitc92c420f83dda53ebde74ad72cd0a3959d430901 (patch)
treebe6d064f24fd36556d7475b6e5f027435802425b /audio/unix.c
parentf4f92d015b2bf4b5478d62fb8f4d0e28443f25cf (diff)
Implement RequestAuthorization support
Diffstat (limited to 'audio/unix.c')
-rw-r--r--audio/unix.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/audio/unix.c b/audio/unix.c
index 19a140c0..3488fd5f 100644
--- a/audio/unix.c
+++ b/audio/unix.c
@@ -317,6 +317,11 @@ proceed:
if (!a2dp->session)
a2dp->session = avdtp_get(&dev->src, &dev->dst);
+ if (!a2dp->session) {
+ error("Unable to get a session");
+ goto failed;
+ }
+
id = a2dp_source_request_stream(a2dp->session, dev,
TRUE, a2dp_setup_complete,
client);