mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-31 22:25:38 -04: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
2 changed files with 6 additions and 0 deletions
|
|
@ -236,6 +236,9 @@ struct module *create_module_remap_sink(struct impl *impl, const char *argument)
|
||||||
pw_properties_set(props, "remix", NULL);
|
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));
|
module = module_new(impl, &module_remap_sink_methods, sizeof(*d));
|
||||||
if (module == NULL) {
|
if (module == NULL) {
|
||||||
res = -errno;
|
res = -errno;
|
||||||
|
|
|
||||||
|
|
@ -236,6 +236,9 @@ struct module *create_module_remap_source(struct impl *impl, const char *argumen
|
||||||
pw_properties_set(props, "remix", NULL);
|
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));
|
module = module_new(impl, &module_remap_source_methods, sizeof(*d));
|
||||||
if (module == NULL) {
|
if (module == NULL) {
|
||||||
res = -errno;
|
res = -errno;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue