mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-05 13:30:02 -05:00
pulse-server: module-echo-cancel: set pulse.module.id
Set `pulse.module.id` on every node that libpipewire-module-echo-cancel
creates so that one can see in the output of `pactl list {sinks,sources}`
which nodes were created by a particular instance of module-echo-cancel.
Fixes #3541
This commit is contained in:
parent
15a283834f
commit
5d0e82be7e
1 changed files with 5 additions and 0 deletions
|
|
@ -52,6 +52,11 @@ static int module_echo_cancel_load(struct module *module)
|
||||||
char *args;
|
char *args;
|
||||||
size_t size;
|
size_t size;
|
||||||
|
|
||||||
|
pw_properties_setf(data->capture_props, "pulse.module.id", "%u", module->index);
|
||||||
|
pw_properties_setf(data->source_props, "pulse.module.id", "%u", module->index);
|
||||||
|
pw_properties_setf(data->sink_props, "pulse.module.id", "%u", module->index);
|
||||||
|
pw_properties_setf(data->playback_props, "pulse.module.id", "%u", module->index);
|
||||||
|
|
||||||
if ((f = open_memstream(&args, &size)) == NULL)
|
if ((f = open_memstream(&args, &size)) == NULL)
|
||||||
return -errno;
|
return -errno;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue