summaryrefslogtreecommitdiffstats
path: root/mpvcore
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-10-20 13:55:10 +0200
committerwm4 <wm4@nowhere>2013-10-20 14:11:28 +0200
commit97c93918feb10cea29ada0d08fa5f561a78f4817 (patch)
tree353d82b70448b20c41fdf2c33e99d2e073b79ac7 /mpvcore
parent7078df4f5e528a0689d88e398f0494701cdd4deb (diff)
downloadmpv-97c93918feb10cea29ada0d08fa5f561a78f4817.tar.bz2
mpv-97c93918feb10cea29ada0d08fa5f561a78f4817.tar.xz
input: fix --input-ar-rate=0
Crashed, instead of disabling auto-repeat.
Diffstat (limited to 'mpvcore')
-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);
}