mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-05 13:29:57 -05:00
bluetooth: Ignore Device.Connected
The Device.Connected was only used for tracking whether a device module should be loaded, but that information is already included in the individual profile state properties. The property can therefore be completely ignored without any loss in functionality.
This commit is contained in:
parent
55baf5424e
commit
6545cc77f4
3 changed files with 1 additions and 5 deletions
|
|
@ -74,7 +74,7 @@ static pa_hook_result_t load_module_for_device(pa_bluetooth_discovery *y, const
|
|||
|
||||
mi = pa_hashmap_get(u->hashmap, d->path);
|
||||
|
||||
if (!d->dead && d->device_connected > 0 &&
|
||||
if (!d->dead &&
|
||||
(d->audio_state >= PA_BT_AUDIO_STATE_CONNECTED ||
|
||||
d->audio_source_state >= PA_BT_AUDIO_STATE_CONNECTED ||
|
||||
d->hfgw_state >= PA_BT_AUDIO_STATE_CONNECTED)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue