ucm: warn about unknown sequence commands

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
Jaroslav Kysela 2021-03-09 20:02:57 +01:00
parent 1c6fb20232
commit 56c11293e3

View file

@ -812,7 +812,13 @@ static int parse_sequence(snd_use_case_mgr_t *uc_mgr,
}
continue;
}
if (strcmp(cmd, "comment") == 0)
goto skip;
uc_error("error: sequence command '%s' is ignored", cmd);
skip:
list_del(&curr->list);
uc_mgr_free_sequence_element(curr);
}