mirror of
https://gitlab.freedesktop.org/pipewire/pipewire
synced 2024-09-06 00:40:34 +00:00
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:
parent
5df0f6b4ad
commit
5d104994c0
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue