mirror of
https://gitlab.freedesktop.org/pipewire/wireplumber.git
synced 2026-05-05 08:58:01 +02:00
m-device-activation: assume last profile as the one with highest priority
This commit is contained in:
parent
6550718823
commit
0913257d2e
1 changed files with 2 additions and 6 deletions
|
|
@ -172,16 +172,12 @@ on_device_enum_profile_done (WpProxy *proxy, GAsyncResult *res,
|
|||
wp_warning_object (self, "bluetooth profile does not have index / name");
|
||||
continue;
|
||||
}
|
||||
wp_info_object (self, "bluez profile found: %s (%d)", name, index);
|
||||
|
||||
/* TODO: for now we always use the first profile available */
|
||||
/* TODO: we assume the last profile is the one with highest priority */
|
||||
profile_index = index;
|
||||
break;
|
||||
}
|
||||
|
||||
/* TODO: Currently, it seems that the bluetooth device allways returns an
|
||||
* empty list of profiles when doing EnumProfile, so for now we use a default
|
||||
* profile with index 1 if the list is empty. We should return an error
|
||||
* if none of them were found */
|
||||
set_device_profile (proxy, profile_index);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue