summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuiz Augusto von Dentz <luiz.dentz@openbossa.org>2008-12-02 11:35:26 -0300
committerLuiz Augusto von Dentz <luiz.dentz@openbossa.org>2008-12-02 11:35:26 -0300
commit75feaf48401c04fb68e78c41213e26fdefa71ab9 (patch)
tree588a8229dbc59f45591035c4b93a276e38a30c67
parent4ed78c91a7b89db9c7defc2c69d022ddf844b808 (diff)
Add another missing check for btd_device_add_uuid.
-rw-r--r--audio/avdtp.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/audio/avdtp.c b/audio/avdtp.c
index c1d8ed62..c06a3f50 100644
--- a/audio/avdtp.c
+++ b/audio/avdtp.c
@@ -1077,8 +1077,13 @@ static gboolean avdtp_setconf_cmd(struct avdtp *session,
switch (sep->info.type) {
case AVDTP_SEP_TYPE_SOURCE:
- if (!dev->sink)
+ if (!dev->sink) {
btd_device_add_uuid(dev->btd_dev, A2DP_SINK_UUID);
+ if (!dev->sink) {
+ error("Unable to get a audio sink object");
+ goto failed;
+ }
+ }
break;
case AVDTP_SEP_TYPE_SINK:
/* Do source_init() here when it's implemented */