From d8ab51a9fc8e91d2dc92cd0c11e8287ffc4683d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Barnab=C3=A1s=20P=C5=91cze?= Date: Fri, 12 Jan 2024 01:50:47 +0100 Subject: [PATCH] pw-top: use `media.name` as display name Try to use `media.name` as the display name for a node when none of the other keys are found in its properties. For example, `pw_stream_new_simple()` only sets `media.name` on the created node object by default. --- src/tools/pw-top.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/tools/pw-top.c b/src/tools/pw-top.c index cb04475f0..7a550ff94 100644 --- a/src/tools/pw-top.c +++ b/src/tools/pw-top.c @@ -171,6 +171,7 @@ static const char *find_node_name(const struct spa_dict *props) PW_KEY_NODE_NAME, PW_KEY_NODE_DESCRIPTION, PW_KEY_APP_NAME, + PW_KEY_MEDIA_NAME, }; SPA_FOR_EACH_ELEMENT_VAR(name_keys, key) {