mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-03 09:01:54 -05:00
protocol-native: don't overwrite the intention with remote.name
This commit is contained in:
parent
864438e8e9
commit
70ca546c6a
1 changed files with 2 additions and 3 deletions
|
|
@ -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)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue