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) id, &iidx, NULL, &iparam, &ib)) < 0)
break; break;
if (res == 0 && num > 0) if (res == 0) {
break; if (num > 0)
else break;
iparam = NULL; iparam = NULL;
}
if (pw_log_level_enabled(SPA_LOG_LEVEL_DEBUG) && iparam != NULL) if (pw_log_level_enabled(SPA_LOG_LEVEL_DEBUG) && iparam != NULL)
spa_debug_pod(iparam, 0); spa_debug_pod(iparam, 0);