mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-02 09:01:46 -05:00
bluetooth: Remove pa_bluetooth_device_get_transport()
With the use of an array to represent a device's transpors, the function becomes trivial and thus can be removed.
This commit is contained in:
parent
faaf8cd39e
commit
ebdb18bca4
3 changed files with 2 additions and 11 deletions
|
|
@ -1984,9 +1984,10 @@ static int setup_transport(struct userdata *u) {
|
|||
|
||||
pa_assert(u);
|
||||
pa_assert(!u->transport);
|
||||
pa_assert(u->profile != PROFILE_OFF);
|
||||
|
||||
/* check if profile has a transport */
|
||||
t = pa_bluetooth_device_get_transport(u->device, u->profile);
|
||||
t = u->device->transports[u->profile];
|
||||
if (t == NULL) {
|
||||
pa_log_warn("Profile has no transport");
|
||||
return -1;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue