mirror of
https://gitlab.freedesktop.org/pipewire/wireplumber.git
synced 2026-01-10 22:50:15 +01:00
When a manual change is applied, the store-or-restore-routes is the only hook that gets executed for this event. In order to be able to test if a route was changed, we need to reset all of them to 'active = false', record the previous value of 'active' and test their difference. Testing only the 'active' variable (and discarding 'prev_active') sounds tempting here, but if a route is changed back and forth (from A to B and back to A), there is nothing to reset the 'active' variable of A when it gets deactivated and it will appear as previously active on the second switch. Related to: #551 |
||
|---|---|---|
| .. | ||
| client | ||
| default-nodes | ||
| device | ||
| lib | ||
| linking | ||
| monitors | ||
| node | ||
| fallback-sink.lua | ||
| intended-roles.lua | ||
| metadata.lua | ||
| policy-dsp.lua | ||
| sm-objects.lua | ||