a2dp: also acquire when the state is pending

This commit is contained in:
Wim Taymans 2019-05-16 16:43:35 +02:00
parent e009fead09
commit 4ae771ccc1

View file

@ -484,7 +484,7 @@ static int do_start(struct impl *this)
spa_log_debug(this->log, "a2dp-source %p: start", 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); res = transport_start(this);
this->started = true; this->started = true;