mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-02 09:01:50 -05:00
node: keep track of spa flags
This commit is contained in:
parent
8982e157c4
commit
f29d098074
2 changed files with 5 additions and 0 deletions
|
|
@ -1022,6 +1022,9 @@ static void node_info(void *data, const struct spa_node_info *info)
|
|||
node, info->change_mask, info->max_input_ports,
|
||||
info->max_output_ports);
|
||||
|
||||
if (info->change_mask & SPA_NODE_CHANGE_MASK_FLAGS) {
|
||||
node->spa_flags = info->flags;
|
||||
}
|
||||
if (info->change_mask & SPA_NODE_CHANGE_MASK_PROPS) {
|
||||
update_properties(node, info->props);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -395,6 +395,8 @@ struct pw_node {
|
|||
struct pw_node_info info; /**< introspectable node info */
|
||||
struct spa_param_info params[MAX_PARAMS];
|
||||
|
||||
uint32_t spa_flags;
|
||||
|
||||
unsigned int registered:1;
|
||||
unsigned int active:1; /**< if the node is active */
|
||||
unsigned int live:1; /**< if the node is live */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue