pulse-server: mark remap source and sink passive

Make sure the links to the real source/sink are passive links so that
the virtual sink is suspended with the real sink when unused.
This commit is contained in:
Wim Taymans 2021-04-24 19:46:06 +02:00
parent 5df0f6b4ad
commit 5d104994c0
2 changed files with 6 additions and 0 deletions

View file

@ -236,6 +236,9 @@ struct module *create_module_remap_sink(struct impl *impl, const char *argument)
pw_properties_set(props, "remix", NULL);
}
if (pw_properties_get(capture_props, PW_KEY_NODE_PASSIVE) == NULL)
pw_properties_set(capture_props, PW_KEY_NODE_PASSIVE, "true");
module = module_new(impl, &module_remap_sink_methods, sizeof(*d));
if (module == NULL) {
res = -errno;

View file

@ -236,6 +236,9 @@ struct module *create_module_remap_source(struct impl *impl, const char *argumen
pw_properties_set(props, "remix", NULL);
}
if (pw_properties_get(capture_props, PW_KEY_NODE_PASSIVE) == NULL)
pw_properties_set(capture_props, PW_KEY_NODE_PASSIVE, "true");
module = module_new(impl, &module_remap_source_methods, sizeof(*d));
if (module == NULL) {
res = -errno;