audioconvert: use the right variable

Keep the result of the follower in res2, fail if we could not set the
properties on both the follower and the converter.
This commit is contained in:
Wim Taymans 2021-07-06 16:28:57 +02:00
parent 9fa72f22cb
commit acad6b8f2b

View file

@ -453,7 +453,7 @@ static int impl_node_set_param(void *object, uint32_t id, uint32_t flags,
case SPA_PARAM_Props:
if (this->target != this->follower)
res = spa_node_set_param(this->target, id, flags, param);
res = spa_node_set_param(this->follower, id, flags, param);
res2 = spa_node_set_param(this->follower, id, flags, param);
if (res < 0 && res2 < 0)
return res;
res = 0;