summaryrefslogtreecommitdiffstats
path: root/input
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2019-11-21 21:29:14 +0100
committerwm4 <wm4@nowhere>2019-11-22 01:15:07 +0100
commita098e981983bc38c916ec8c61fcde24f98dde1ab (patch)
tree62444b18e3f6e3c02d38ca2bd391d1fbcbb4b526 /input
parent67fef2b152e8897bb83da1837b0858b08d4dd1ab (diff)
downloadmpv-a098e981983bc38c916ec8c61fcde24f98dde1ab.tar.bz2
mpv-a098e981983bc38c916ec8c61fcde24f98dde1ab.tar.xz
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.
Diffstat (limited to 'input')
-rw-r--r--input/input.c2
1 files changed, 1 insertions, 1 deletions
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" : "",