aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMikel Astiz <mikel.astiz@bmw-carit.de>2012-05-04 15:14:35 +0200
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2012-05-07 07:05:39 -0700
commit4523901db271776f1e5972dea6e982903ed4db5c (patch)
tree473d2a58b18d0b1adff00f532c1d1f3a6c8d38b9
parent69fd49d6febd0666a7193faa9cae04c455e945ff (diff)
downloadbluez-4523901db271776f1e5972dea6e982903ed4db5c.tar.gz
bluez-4523901db271776f1e5972dea6e982903ed4db5c.tar.xz
bluez-4523901db271776f1e5972dea6e982903ed4db5c.zip
audio: Fix gateway state check
Gateway should be considered active also if connecting or playing. This could for example lead to manager_find_device() not returning a device that is connecting, and thus the corresponding endpoint would never be created in the Media API.
-rw-r--r--audio/device.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/audio/device.c b/audio/device.c
index a9d35f95..ee1ade1f 100644
--- a/audio/device.c
+++ b/audio/device.c
@@ -701,7 +701,7 @@ gboolean audio_device_is_active(struct audio_device *dev,
control_is_active(dev))
return TRUE;
else if (!strcmp(interface, AUDIO_GATEWAY_INTERFACE) && dev->gateway &&
- gateway_is_connected(dev))
+ gateway_is_active(dev))
return TRUE;
return FALSE;