From 4fb9e7eecc27f94a8b3650b97177626c1178d7d0 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Wed, 2 Dec 2020 10:31:16 +0100 Subject: [PATCH] pulse-server: convert some more null-sink properties --- src/modules/module-protocol-pulse/module.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/modules/module-protocol-pulse/module.c b/src/modules/module-protocol-pulse/module.c index bf592b1db..be19f4d1e 100644 --- a/src/modules/module-protocol-pulse/module.c +++ b/src/modules/module-protocol-pulse/module.c @@ -171,6 +171,14 @@ static int load_module(struct client *client, const char *name, const char *argu add_props(props, str); pw_properties_set(props, "sink_properties", NULL); } + if ((str = pw_properties_get(props, "channels")) != NULL) { + pw_properties_set(props, "audio.channels", str); + pw_properties_set(props, "channels", NULL); + } + if ((str = pw_properties_get(props, "rate")) != NULL) { + pw_properties_set(props, "audio.rate", str); + pw_properties_set(props, "rate", NULL); + } if ((str = pw_properties_get(props, "device.description")) != NULL) { pw_properties_set(props, "node.description", str); pw_properties_set(props, "device.description", NULL);