pulse-server: handle channel_map null-sink option

This commit is contained in:
Wim Taymans 2020-12-02 15:39:31 +01:00
parent 53adabea19
commit e2f0ab5710

View file

@ -179,6 +179,10 @@ static int load_module(struct client *client, const char *name, const char *argu
pw_properties_set(props, "audio.rate", str);
pw_properties_set(props, "rate", NULL);
}
if ((str = pw_properties_get(props, "channel_map")) != NULL) {
pw_properties_set(props, "audio.position", str);
pw_properties_set(props, "channel_map", NULL);
}
if ((str = pw_properties_get(props, "device.description")) != NULL) {
pw_properties_set(props, "node.description", str);
pw_properties_set(props, "device.description", NULL);