From 97c93918feb10cea29ada0d08fa5f561a78f4817 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sun, 20 Oct 2013 13:55:10 +0200 Subject: input: fix --input-ar-rate=0 Crashed, instead of disabling auto-repeat. --- mpvcore/input/input.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mpvcore/input/input.c b/mpvcore/input/input.c index 4ce7fe0156..b26f2d491d 100644 --- a/mpvcore/input/input.c +++ b/mpvcore/input/input.c @@ -1783,7 +1783,7 @@ static void input_wait_read(struct input_ctx *ictx, int time) */ static void read_events(struct input_ctx *ictx, int time) { - if (ictx->num_key_down) { + if (ictx->num_key_down && ictx->ar_rate > 0) { time = FFMIN(time, 1000 / ictx->ar_rate); time = FFMIN(time, ictx->ar_delay); } -- cgit v1.2.3