audioadapter: only check port params when changed

This commit is contained in:
Wim Taymans 2021-02-15 15:39:39 +01:00
parent 7ba9044c3d
commit e7aa15e475

View file

@ -651,6 +651,7 @@ static void follower_port_info(void *data,
struct impl *this = data;
uint32_t i;
if (info->change_mask & SPA_PORT_CHANGE_MASK_PARAMS) {
for (i = 0; i < info->n_params; i++) {
uint32_t idx = SPA_ID_INVALID;
@ -664,6 +665,7 @@ static void follower_port_info(void *data,
this->info.change_mask |= SPA_NODE_CHANGE_MASK_PARAMS;
}
}
}
if (!this->add_listener)
emit_node_info(this, false);
}