mirror of
https://gitlab.freedesktop.org/pipewire/pipewire
synced 2024-10-06 16:09:43 +00:00
conf: warn when match actions are missing
This commit is contained in:
parent
8b35b00d82
commit
bdca7cb1a0
|
@ -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;
|
||||
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…
Reference in a new issue