node: keep track of spa flags

This commit is contained in:
Wim Taymans 2019-08-06 12:34:52 +02:00
parent 8982e157c4
commit f29d098074
2 changed files with 5 additions and 0 deletions

View file

@ -1022,6 +1022,9 @@ static void node_info(void *data, const struct spa_node_info *info)
node, info->change_mask, info->max_input_ports, node, info->change_mask, info->max_input_ports,
info->max_output_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) { if (info->change_mask & SPA_NODE_CHANGE_MASK_PROPS) {
update_properties(node, info->props); update_properties(node, info->props);
} }

View file

@ -395,6 +395,8 @@ struct pw_node {
struct pw_node_info info; /**< introspectable node info */ struct pw_node_info info; /**< introspectable node info */
struct spa_param_info params[MAX_PARAMS]; struct spa_param_info params[MAX_PARAMS];
uint32_t spa_flags;
unsigned int registered:1; unsigned int registered:1;
unsigned int active:1; /**< if the node is active */ unsigned int active:1; /**< if the node is active */
unsigned int live:1; /**< if the node is live */ unsigned int live:1; /**< if the node is live */