protocol-native: don't overwrite the intention with remote.name

This commit is contained in:
Wim Taymans 2025-01-29 12:08:20 +01:00
parent 864438e8e9
commit 70ca546c6a

View file

@ -1326,9 +1326,8 @@ impl_new_client(struct pw_protocol *protocol,
if (props) { if (props) {
str = spa_dict_lookup(props, PW_KEY_REMOTE_INTENTION); str = spa_dict_lookup(props, PW_KEY_REMOTE_INTENTION);
if (str == NULL && if ((str == NULL || spa_streq(str, "generic")) &&
(str = spa_dict_lookup(props, PW_KEY_REMOTE_NAME)) != NULL && spa_streq(spa_dict_lookup(props, PW_KEY_REMOTE_NAME), "internal"))
spa_streq(str, "internal"))
str = "internal"; str = "internal";
} }
if (str == NULL) if (str == NULL)