summaryrefslogtreecommitdiffstats
path: root/mpvcore/input
diff options
context:
space:
mode:
Diffstat (limited to 'mpvcore/input')
-rw-r--r--mpvcore/input/input.c2
1 files changed, 1 insertions, 1 deletions
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);
}