adapter: enhance converter flags with follower flags

We don't want to override the converter flags with the follower flags,
just enhance them with specific follower flags. Otherwise we lose the
DYNAMIC_DATA and other port flags from the converter.

See #4918
This commit is contained in:
Wim Taymans 2025-10-01 11:03:53 +02:00
parent c91f75ae2e
commit 0915ed8be0
2 changed files with 2 additions and 2 deletions

View file

@ -1262,7 +1262,7 @@ static void convert_port_info(void *data,
port_id--;
} else if (info) {
pi = *info;
pi.flags = this->follower_port_flags &
pi.flags |= this->follower_port_flags &
(SPA_PORT_FLAG_LIVE |
SPA_PORT_FLAG_PHYSICAL |
SPA_PORT_FLAG_TERMINAL);

View file

@ -1285,7 +1285,7 @@ static void convert_port_info(void *data,
port_id--;
} else if (info) {
pi = *info;
pi.flags = this->follower_port_flags &
pi.flags |= this->follower_port_flags &
(SPA_PORT_FLAG_LIVE |
SPA_PORT_FLAG_PHYSICAL |
SPA_PORT_FLAG_TERMINAL);