switch-on-connect: add option to ignore virtual sinks/sources
authorGeorg Chini <georg@chini.tk>
Sun, 3 Dec 2017 21:27:53 +0000 (22:27 +0100)
committerGeorg Chini <georg@chini.tk>
Sun, 3 Dec 2017 21:27:53 +0000 (22:27 +0100)
commite083357b88c6360edc3d8fe8bb1109c7f190709a
tree94cb3404d6600d785328dcab6a91944b329ec7da
parentd6a0dcc3a2a9e73a7664be9ad62d7fffd1f926de
switch-on-connect: add option to ignore virtual sinks/sources

module-switch-on-connect would switch to any new sink, even if the sink
was a filter or a null-sink.

This patch adds a command line option ignore_virtual to the module, which
lets module-switch-on-connect ignore virtual sinks and sources. The flag
is true by default because the purpose of the module is to switch to new
hardware when it becomes available.
src/modules/module-switch-on-connect.c