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