pulse-server: implement OBJECT_LINGER

Use OBJECT_LINGER in module-load to make sure the module stays loaded
after the client disconnects.
Implement linger in adapter and node-factory
This commit is contained in:
Wim Taymans 2020-11-26 09:28:22 +01:00
parent 0fe77d39ce
commit 1934df7307
3 changed files with 15 additions and 3 deletions

View file

@ -176,6 +176,7 @@ static int load_module(struct client *client, const char *name, const char *argu
pw_properties_set(props, "device.description", NULL);
}
pw_properties_set(props, "factory.name", "support.null-audio-sink");
pw_properties_set(props, PW_KEY_OBJECT_LINGER, "1");
module = calloc(1, sizeof(struct module));
module->client = client;