Skip to content

scripts: fix regression in state-routes.lua when marking routes as 'active'

Julian Bouzas requested to merge julian/wireplumber:active-routes-fix into master

Like WirePlumber 0.4.17, we need to mark the current routes as 'active' if they were previously not active as soon as we detect it. This avoids a possible infinite loop that restores the routes and saves them constantly, which happens when the device's Route param has changed more than once before the event 'select-routes' is triggered.

This infinite loop is not easy to reproduce because it does not happen all the time when EnumRoute param changes, but with this change I am not able to reproduce it anymore.

Merge request reports

Loading