diff --git a/spa/plugins/bluez5/a2dp-source.c b/spa/plugins/bluez5/a2dp-source.c index b7787323a..568b2097e 100644 --- a/spa/plugins/bluez5/a2dp-source.c +++ b/spa/plugins/bluez5/a2dp-source.c @@ -721,13 +721,13 @@ static int do_start(struct impl *this) if (this->started) return 0; + spa_return_val_if_fail(this->transport != NULL, -EIO); + this->following = is_following(this); spa_log_debug(this->log, "%p: start state:%d following:%d", this, this->transport->state, this->following); - spa_return_val_if_fail(this->transport != NULL, -EIO); - if (this->transport->state >= SPA_BT_TRANSPORT_STATE_PENDING || this->is_duplex) res = transport_start(this);