input: fix ineffective mp_msg_test call

This was supposed not to go through key lookup if the message wasn't
going to be output, but for whatever reason the log levels were
mismatched.
This commit is contained in:
wm4 2019-11-21 21:29:14 +01:00
parent 67fef2b152
commit a098e98198
1 changed files with 1 additions and 1 deletions

View File

@ -553,7 +553,7 @@ static void interpret_key(struct input_ctx *ictx, int code, double scale,
int state = code & (MP_KEY_STATE_DOWN | MP_KEY_STATE_UP);
code = code & ~(unsigned)state;
if (mp_msg_test(ictx->log, MSGL_DEBUG)) {
if (mp_msg_test(ictx->log, MSGL_TRACE)) {
char *key = mp_input_get_key_name(code);
MP_TRACE(ictx, "key code=%#x '%s'%s%s\n",
code, key, (state & MP_KEY_STATE_DOWN) ? " down" : "",