mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-01 22:58:50 -04:00
audioconvert: make sure we update the flags
When we get a param update, update with the new flags.
This commit is contained in:
parent
157d423246
commit
5ae286702e
2 changed files with 12 additions and 0 deletions
|
|
@ -609,6 +609,9 @@ static void convert_node_info(void *data, const struct spa_node_info *info)
|
|||
}
|
||||
if (idx != SPA_ID_INVALID) {
|
||||
this->info.change_mask |= SPA_NODE_CHANGE_MASK_PARAMS;
|
||||
this->params[idx].flags =
|
||||
(this->params[idx].flags & SPA_PARAM_INFO_SERIAL) |
|
||||
(info->params[i].flags & SPA_PARAM_INFO_READWRITE);
|
||||
this->params[idx].user++;
|
||||
}
|
||||
}
|
||||
|
|
@ -683,6 +686,9 @@ static void follower_info(void *data, const struct spa_node_info *info)
|
|||
}
|
||||
if (idx != SPA_ID_INVALID) {
|
||||
this->info.change_mask |= SPA_NODE_CHANGE_MASK_PARAMS;
|
||||
this->params[idx].flags =
|
||||
(this->params[idx].flags & SPA_PARAM_INFO_SERIAL) |
|
||||
(info->params[i].flags & SPA_PARAM_INFO_READWRITE);
|
||||
this->params[idx].user++;
|
||||
}
|
||||
}
|
||||
|
|
@ -708,6 +714,9 @@ static void follower_port_info(void *data,
|
|||
}
|
||||
if (idx != SPA_ID_INVALID) {
|
||||
this->info.change_mask |= SPA_NODE_CHANGE_MASK_PARAMS;
|
||||
this->params[idx].flags =
|
||||
(this->params[idx].flags & SPA_PARAM_INFO_SERIAL) |
|
||||
(info->params[i].flags & SPA_PARAM_INFO_READWRITE);
|
||||
this->params[idx].user++;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -628,6 +628,9 @@ static void on_channelmix_info(void *data, const struct spa_node_info *info)
|
|||
}
|
||||
if (idx != SPA_ID_INVALID) {
|
||||
this->info.change_mask |= SPA_NODE_CHANGE_MASK_PARAMS;
|
||||
this->params[idx].flags =
|
||||
(this->params[idx].flags & SPA_PARAM_INFO_SERIAL) |
|
||||
(info->params[i].flags & SPA_PARAM_INFO_READWRITE);
|
||||
this->params[idx].user++;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue