From a098e981983bc38c916ec8c61fcde24f98dde1ab Mon Sep 17 00:00:00 2001 From: wm4 Date: Thu, 21 Nov 2019 21:29:14 +0100 Subject: 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. --- input/input.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/input/input.c b/input/input.c index cff39027e1..87956cf2b9 100644 --- a/input/input.c +++ b/input/input.c @@ -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" : "", -- cgit v1.2.3