mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-16 07:00:00 -05:00
node: only set update flag when changed
This commit is contained in:
parent
0955ecc4b0
commit
e62b59beb9
1 changed files with 4 additions and 3 deletions
|
|
@ -1223,9 +1223,10 @@ static void node_info(void *data, const struct spa_node_info *info)
|
|||
info->max_output_ports);
|
||||
|
||||
if (info->change_mask & SPA_NODE_CHANGE_MASK_FLAGS) {
|
||||
recalc = node->spa_flags != info->flags;
|
||||
node->spa_flags = info->flags;
|
||||
node->info.change_mask |= PW_NODE_CHANGE_MASK_PROPS;
|
||||
if ((recalc = node->spa_flags != info->flags)) {
|
||||
node->spa_flags = info->flags;
|
||||
node->info.change_mask |= PW_NODE_CHANGE_MASK_PROPS;
|
||||
}
|
||||
}
|
||||
if (info->change_mask & SPA_NODE_CHANGE_MASK_PROPS) {
|
||||
update_properties(node, info->props);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue