PulseAudio Marge Bot pushed to branch master at PulseAudio / pulseaudio
Commits: 38eb74f6 by Tanu Kaskinen at 2021-01-15T18:19:49+02:00 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> - - - - - 1 changed file: - src/modules/module-switch-on-port-available.c Changes: ===================================== src/modules/module-switch-on-port-available.c ===================================== @@ -278,8 +278,10 @@ static void switch_from_port(pa_device_port *port, struct port_pointers pp) { * profile is still available in the * PA_CORE_HOOK_CARD_PROFILE_AVAILABLE_CHANGED callback, as at this point * the profile availability hasn't been updated yet. */ - if (best_port) - switch_to_port(best_port, pp); + if (best_port) { + struct port_pointers best_pp = find_port_pointers(best_port); + switch_to_port(best_port, best_pp); + } } View it on GitLab: https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/commit/38eb74f66dd55d0ae98ec0e28103770451360bb7 -- View it on GitLab: https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/commit/38eb74f66dd55d0ae98ec0e28103770451360bb7 You're receiving this email because of your account on gitlab.freedesktop.org.
_______________________________________________ pulseaudio-commits mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/pulseaudio-commits
