diff options
author | Tanu Kaskinen <tanuk@iki.fi> | 2016-03-07 13:18:29 +0200 |
---|---|---|
committer | Tanu Kaskinen <tanuk@iki.fi> | 2016-04-25 13:50:47 +0300 |
commit | 085cced42ce0901a2f677fc2f630801b0f4edf80 (patch) | |
tree | de1ac9280647ff6dc54f3827ad629f1d9b3bba74 /bootstrap.sh | |
parent | 13fc8333873b5cfd5f42abf0b6071bb028d9f096 (diff) | |
download | pulseaudio-085cced42ce0901a2f677fc2f630801b0f4edf80.tar.gz |
device-manager, filter-apply: don't reroute streams that have a filter
device-manager reroutes all streams whenever a new device appears.
When filter-apply has loaded a filter for some stream, the filter
device may not be what device-manager considers the best device for
the stream, which means that when an unrelated device appears,
device-manager may break the filtering that filter-apply had set up.
This patch changes filter-apply so that it saves the filter device
name to the stream proplist when it sets up a filter. device-manager
can then check the proplist when it does rerouting, and skip the
rerouting for streams that have a filter applied to them.
The proplist isn't cleaned up when the stream moves away from the
filter device, so before doing any decisions based on the
filter_device property, it should be checked that the stream is
currently routed to the filter device. It seemed simpler to do it this
way compared to setting up stream move monitoring in filter-apply and
removing the property when the stream moves away from the filter
device.
Diffstat (limited to 'bootstrap.sh')
0 files changed, 0 insertions, 0 deletions