mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
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:
parent
c91f75ae2e
commit
0915ed8be0
2 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue