link: handle the right port in the callback

This commit is contained in:
Wim Taymans 2019-02-21 10:30:40 +01:00
parent 7b12212eeb
commit a3ca2df0fe
4 changed files with 9 additions and 6 deletions

View file

@ -227,6 +227,7 @@ static int impl_node_set_param(struct spa_node *node, uint32_t id, uint32_t flag
case SPA_PARAM_Profile:
if (impl->started)
return -EIO;
pw_log_debug("set profile %d", id);
if (impl->adapter != impl->cnode) {
if ((res = spa_node_set_param(impl->adapter, id, flags, param)) < 0)
return res;