jack: prefer nick for node name

The nick is shorter and nicer for jack applications. We have the
full description in the port alias 2.
This commit is contained in:
Wim Taymans 2020-08-03 18:13:31 +02:00
parent d57da19f26
commit d76b509995

View file

@ -2015,8 +2015,8 @@ static void registry_event_global(void *data, uint32_t id,
app = spa_dict_lookup(props, PW_KEY_APP_NAME); app = spa_dict_lookup(props, PW_KEY_APP_NAME);
if ((str = spa_dict_lookup(props, PW_KEY_NODE_DESCRIPTION)) == NULL && if ((str = spa_dict_lookup(props, PW_KEY_NODE_NICK)) == NULL &&
(str = spa_dict_lookup(props, PW_KEY_NODE_NICK)) == NULL && (str = spa_dict_lookup(props, PW_KEY_NODE_DESCRIPTION)) == NULL &&
(str = spa_dict_lookup(props, PW_KEY_NODE_NAME)) == NULL) { (str = spa_dict_lookup(props, PW_KEY_NODE_NAME)) == NULL) {
str = "node"; str = "node";
} }