mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-02 09:01:50 -05:00
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:
parent
79129f81a7
commit
4a57f88345
1 changed files with 4 additions and 3 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue