From 4a57f88345d50430b8dfc32b82641cce261bc15a Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Thu, 11 Jan 2018 10:16:40 +0100 Subject: [PATCH] link: fix param enumeration When we have no input parameter we always need to use NULL as the filter for the output parameter. --- src/pipewire/link.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/pipewire/link.c b/src/pipewire/link.c index 035c0e890..1389c7124 100644 --- a/src/pipewire/link.c +++ b/src/pipewire/link.c @@ -447,10 +447,11 @@ param_filter(struct pw_link *this, id, &iidx, NULL, &iparam, &ib)) < 0) break; - if (res == 0 && num > 0) - break; - else + if (res == 0) { + if (num > 0) + break; iparam = NULL; + } if (pw_log_level_enabled(SPA_LOG_LEVEL_DEBUG) && iparam != NULL) spa_debug_pod(iparam, 0);