From 4523901db271776f1e5972dea6e982903ed4db5c Mon Sep 17 00:00:00 2001 From: Mikel Astiz Date: Fri, 4 May 2012 15:14:35 +0200 Subject: [PATCH] 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. --- audio/device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/audio/device.c b/audio/device.c index a9d35f953..ee1ade1ff 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; -- 2.47.3