mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-02 09:01:50 -05:00
conf: shortcut failure
As soon as we find a failed match, break the loop so that we don't check uselessly the other properties but that we proceeed to the next set of properties to match.
This commit is contained in:
parent
27bc60aeab
commit
aacd458b92
1 changed files with 3 additions and 1 deletions
|
|
@ -634,8 +634,10 @@ static bool find_match(struct spa_json *arr, const struct spa_dict *props)
|
|||
match++;
|
||||
pw_log_debug("'%s' match '%s' < > '%.*s'", key, str, len, value);
|
||||
}
|
||||
else
|
||||
else {
|
||||
fail++;
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (match > 0 && fail == 0)
|
||||
return true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue