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:
Barnabás Pőcze 2023-10-02 22:01:12 +02:00
parent 15a283834f
commit 5d0e82be7e

View file

@ -52,6 +52,11 @@ static int module_echo_cancel_load(struct module *module)
char *args;
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)
return -errno;