msg: make mp_msg_find_level case insensitive

This commit is contained in:
Kacper Michajłow 2023-10-24 01:39:32 +02:00 committed by Dudemanguy
parent 78f1cedd0c
commit 29e677fea5
1 changed files with 1 additions and 1 deletions

View File

@ -959,7 +959,7 @@ const int mp_mpv_log_levels[MSGL_MAX + 1] = {
int mp_msg_find_level(const char *s) int mp_msg_find_level(const char *s)
{ {
for (int n = 0; n < MP_ARRAY_SIZE(mp_log_levels); n++) { for (int n = 0; n < MP_ARRAY_SIZE(mp_log_levels); n++) {
if (mp_log_levels[n] && !strcmp(s, mp_log_levels[n])) if (mp_log_levels[n] && !strcasecmp(s, mp_log_levels[n]))
return n; return n;
} }
return -1; return -1;