mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-05 13:29:57 -05:00
bluetooth: remove a redundant assignment
pa_bluetooth_transport_put() assigns the transport to the device's transports array, so the caller doesn't have to do that.
This commit is contained in:
parent
c538bc7aa4
commit
eec4d29247
1 changed files with 1 additions and 1 deletions
|
|
@ -351,7 +351,7 @@ static DBusMessage *profile_new_connection(DBusConnection *conn, DBusMessage *m,
|
||||||
|
|
||||||
p = PA_BLUETOOTH_PROFILE_HEADSET_HEAD_UNIT;
|
p = PA_BLUETOOTH_PROFILE_HEADSET_HEAD_UNIT;
|
||||||
pathfd = pa_sprintf_malloc ("%s/fd%d", path, fd);
|
pathfd = pa_sprintf_malloc ("%s/fd%d", path, fd);
|
||||||
d->transports[p] = t = pa_bluetooth_transport_new(d, sender, pathfd, p, NULL, 0);
|
t = pa_bluetooth_transport_new(d, sender, pathfd, p, NULL, 0);
|
||||||
pa_xfree(pathfd);
|
pa_xfree(pathfd);
|
||||||
|
|
||||||
t->acquire = bluez5_sco_acquire_cb;
|
t->acquire = bluez5_sco_acquire_cb;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue