link: fix param enumeration

When we have no input parameter we always need to use NULL as the
filter for the output parameter.
This commit is contained in:
Wim Taymans 2018-01-11 10:16:40 +01:00
parent 79129f81a7
commit 4a57f88345

View file

@ -447,10 +447,11 @@ param_filter(struct pw_link *this,
id, &iidx, NULL, &iparam, &ib)) < 0)
break;
if (res == 0 && num > 0)
if (res == 0) {
if (num > 0)
break;
else
iparam = NULL;
}
if (pw_log_level_enabled(SPA_LOG_LEVEL_DEBUG) && iparam != NULL)
spa_debug_pod(iparam, 0);