pulse-server: convert some more null-sink properties

This commit is contained in:
Wim Taymans 2020-12-02 10:31:16 +01:00
parent 1e9b152bb5
commit 4fb9e7eecc

View file

@ -171,6 +171,14 @@ static int load_module(struct client *client, const char *name, const char *argu
add_props(props, str); add_props(props, str);
pw_properties_set(props, "sink_properties", NULL); 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) { if ((str = pw_properties_get(props, "device.description")) != NULL) {
pw_properties_set(props, "node.description", str); pw_properties_set(props, "node.description", str);
pw_properties_set(props, "device.description", NULL); pw_properties_set(props, "device.description", NULL);