From 4ae771ccc1506928225bd76ec13feafb787c637b Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Thu, 16 May 2019 16:43:35 +0200 Subject: [PATCH] a2dp: also acquire when the state is pending --- spa/plugins/bluez5/a2dp-source.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spa/plugins/bluez5/a2dp-source.c b/spa/plugins/bluez5/a2dp-source.c index 0f7802a7a..8cc46f83d 100644 --- a/spa/plugins/bluez5/a2dp-source.c +++ b/spa/plugins/bluez5/a2dp-source.c @@ -484,7 +484,7 @@ static int do_start(struct impl *this) spa_log_debug(this->log, "a2dp-source %p: start", this); - if (this->transport->state == SPA_BT_TRANSPORT_STATE_ACTIVE) + if (this->transport->state >= SPA_BT_TRANSPORT_STATE_PENDING) res = transport_start(this); this->started = true;