Return-Path: From: Mikel Astiz To: linux-bluetooth@vger.kernel.org Cc: Mikel Astiz Subject: [PATCH BlueZ v3 1/6] audio: Fix gateway state check Date: Fri, 4 May 2012 15:14:35 +0200 Message-Id: <1336137280-6692-2-git-send-email-mikel.astiz.oss@gmail.com> In-Reply-To: <1336137280-6692-1-git-send-email-mikel.astiz.oss@gmail.com> References: <1336137280-6692-1-git-send-email-mikel.astiz.oss@gmail.com> Sender: linux-bluetooth-owner@vger.kernel.org List-ID: From: Mikel Astiz 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 files changed, 1 insertions(+), 1 deletions(-) diff --git a/audio/device.c b/audio/device.c index a9d35f9..ee1ade1 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; -- 1.7.7.6