mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-24 07:00:05 -05:00
node: pass struct to info callback to make it more extensible
This commit is contained in:
parent
bb2b15a5fb
commit
04f1046113
9 changed files with 78 additions and 18 deletions
|
|
@ -874,10 +874,11 @@ int pw_node_update_properties(struct pw_node *node, const struct spa_dict *dict)
|
|||
return changed;
|
||||
}
|
||||
|
||||
static void node_info(void *data, const struct spa_dict *info)
|
||||
static void node_info(void *data, const struct spa_node_info *info)
|
||||
{
|
||||
struct pw_node *node = data;
|
||||
pw_node_update_properties(node, info);
|
||||
if (info->change_mask & SPA_NODE_CHANGE_MASK_PROPS)
|
||||
pw_node_update_properties(node, info->props);
|
||||
}
|
||||
|
||||
static void node_done(void *data, int seq, int res)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue