mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2026-02-07 04:06:12 -05:00
conf: warn when match actions are missing
This commit is contained in:
parent
0f0c9e8995
commit
a7a0e2072e
1 changed files with 5 additions and 1 deletions
|
|
@ -1151,8 +1151,12 @@ int pw_conf_match_rules(const char *str, size_t len, const char *location,
|
|||
break;
|
||||
}
|
||||
}
|
||||
if (!have_match || !have_actions)
|
||||
if (!have_match)
|
||||
continue;
|
||||
if (!have_actions) {
|
||||
pw_log_warn("no actions for match rule '%.*s'", (int)len, str);
|
||||
continue;
|
||||
}
|
||||
|
||||
while (spa_json_get_string(&actions, key, sizeof(key)) > 0) {
|
||||
int res, len;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue