summaryrefslogtreecommitdiffstats
path: root/audio/unix.c
diff options
context:
space:
mode:
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);