improve properties on globals and ports

This commit is contained in:
Wim Taymans 2019-09-20 13:28:06 +02:00
parent 6756a3c8fc
commit 77e07e1948
4 changed files with 7 additions and 2 deletions

View file

@ -242,8 +242,10 @@ static void node_port_init(void *data, struct pw_port *port)
direction == PW_DIRECTION_INPUT ? "in" : "out",
str);
pw_properties_set(new, PW_KEY_PORT_PHYSICAL, "1");
pw_properties_set(new, PW_KEY_PORT_TERMINAL, "1");
if (is_device) {
pw_properties_set(new, PW_KEY_PORT_PHYSICAL, "1");
pw_properties_set(new, PW_KEY_PORT_TERMINAL, "1");
}
}
pw_port_update_properties(port, &new->dict);