diff options
author | wm4 <wm4@nowhere> | 2013-10-20 13:55:10 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-10-20 13:55:10 +0200 |
commit | afa9e50587db1e85a441549455ee0252fd8434ba (patch) | |
tree | f30b506c588494cec91ce47a755e7c60c63a3dff /mpvcore/input/input.c | |
parent | 6a4e59677e1d0e4b5c6df8a25c3c9a55ac97e25f (diff) | |
download | mpv-afa9e50587db1e85a441549455ee0252fd8434ba.tar.bz2 mpv-afa9e50587db1e85a441549455ee0252fd8434ba.tar.xz |
input: fix --input-ar-rate=0
Crashed, instead of disabling auto-repeat.
Diffstat (limited to 'mpvcore/input/input.c')
-rw-r--r-- | mpvcore/input/input.c | 2 |
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); } |