mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-02 09:01:50 -05:00
bluez5: Test transport pointer before using it
If this->transport is NULL the debug log will crash.
This commit is contained in:
parent
0532d194ad
commit
6b3390387d
1 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue