bluez5: route shouldn't list a2dp profiles when not connected

This commit is contained in:
Pauli Virtanen 2021-02-19 21:16:27 +02:00
parent 3673265ae2
commit a5dc2493df

View file

@ -448,6 +448,8 @@ static uint32_t profile_direction_mask(struct impl *this, uint32_t index)
have_output = true;
else if (profile == SPA_BT_PROFILE_A2DP_SOURCE)
have_input = true;
else if (profile == 0)
have_output = have_input = false;
else
have_output = have_input = true;
break;