mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-11 13:30:07 -05:00
conf: warn when match actions are missing
This commit is contained in:
parent
8b35b00d82
commit
bdca7cb1a0
1 changed files with 5 additions and 1 deletions
|
|
@ -1270,8 +1270,12 @@ int pw_conf_match_rules(const char *str, size_t len, const char *location,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!have_match || !have_actions)
|
if (!have_match)
|
||||||
continue;
|
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) {
|
while (spa_json_get_string(&actions, key, sizeof(key)) > 0) {
|
||||||
int res, len;
|
int res, len;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue