summaryrefslogtreecommitdiffstats
path: root/audio/manager.c
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@nokia.com>2007-08-21 08:02:07 +0000
committerJohan Hedberg <johan.hedberg@nokia.com>2007-08-21 08:02:07 +0000
commit053db67fe83c502f5e509522497bed6fb721d4c7 (patch)
tree5602a8bf921f05f83743f20da220e8c64d424756 /audio/manager.c
parentcfa764640b52854ffa77e962996d716876fdd115 (diff)
Handle connect attempts during authorization better
Diffstat (limited to 'audio/manager.c')
-rw-r--r--audio/manager.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/audio/manager.c b/audio/manager.c
index 4d8d424d..c1a72b8f 100644
--- a/audio/manager.c
+++ b/audio/manager.c
@@ -1681,7 +1681,8 @@ struct device *manager_get_connected_device(void)
for (l = devices; l != NULL; l = g_slist_next(l)) {
struct device *device = l->data;
- if (device->sink && sink_is_active(device))
+ if ((device->sink || device->source) &&
+ avdtp_is_connected(&device->src, &device->dst))
return device;
if (device->headset && headset_is_active(device))