summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWim Taymans <wtaymans@redhat.com>2020-08-03 18:13:31 +0200
committerWim Taymans <wtaymans@redhat.com>2020-08-03 18:13:31 +0200
commitd76b509995df5277ad82185e2307610ca954a699 (patch)
tree396f1f1b273e069216d38258d6e9c1b15af5c2ce
parentd57da19f260d75cefe4ef48aa1c9768c048bfc7a (diff)
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.
-rw-r--r--pipewire-jack/src/pipewire-jack.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pipewire-jack/src/pipewire-jack.c b/pipewire-jack/src/pipewire-jack.c
index f6a0f3ec..4139da41 100644
--- a/pipewire-jack/src/pipewire-jack.c
+++ b/pipewire-jack/src/pipewire-jack.c
@@ -2015,8 +2015,8 @@ static void registry_event_global(void *data, uint32_t id,
app = spa_dict_lookup(props, PW_KEY_APP_NAME);
- if ((str = spa_dict_lookup(props, PW_KEY_NODE_DESCRIPTION)) == NULL &&
- (str = spa_dict_lookup(props, PW_KEY_NODE_NICK)) == NULL &&
+ if ((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 = "node";
}