switch-on-port-available: Pass correct port_pointers to switch_to_port()
authorTanu Kaskinen <tanuk@iki.fi>
Fri, 15 Jan 2021 16:16:59 +0000 (18:16 +0200)
committerTanu Kaskinen <tanuk@iki.fi>
Fri, 15 Jan 2021 16:19:49 +0000 (18:19 +0200)
commit38eb74f66dd55d0ae98ec0e28103770451360bb7
tree86e21480280881e3d2fd9a9d61b70bb9b9e62cb3
parent613b3ebc2ccc3a39b49d033850e39d760d22b5aa
switch-on-port-available: Pass correct port_pointers to switch_to_port()

The pp variable contains information for the port that became
unavailable, but switch_to_port() needs the information for the port
that we're switching to.

Fixes: https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/issues/1096
Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/468>
src/modules/module-switch-on-port-available.c