summaryrefslogtreecommitdiffstats
path: root/input/input.c
diff options
context:
space:
mode:
authorAlexander Preisinger <alexander.preisinger@gmail.com>2014-09-19 17:48:06 +0200
committerAlexander Preisinger <alexander.preisinger@gmail.com>2014-09-19 17:48:06 +0200
commit30175538fef26d62202bf582de9fa665dd8f6260 (patch)
treefcb00ab325b488ef73c1f660a787610970e5e6ef /input/input.c
parentb99c67f9bbe387444445def6db166c12fa34ca85 (diff)
downloadmpv-30175538fef26d62202bf582de9fa665dd8f6260.tar.bz2
mpv-30175538fef26d62202bf582de9fa665dd8f6260.tar.xz
input: add locking for repeat info
Diffstat (limited to 'input/input.c')
-rw-r--r--input/input.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/input/input.c b/input/input.c
index 13acc9e994..6a3a174bcd 100644
--- a/input/input.c
+++ b/input/input.c
@@ -1511,6 +1511,9 @@ void mp_input_src_feed_cmd_text(struct mp_input_src *src, char *buf, size_t len)
void mp_input_set_repeat_info(struct input_ctx *ictx, int rate, int delay)
{
+ input_lock(ictx);
ictx->ar_rate = rate;
ictx->ar_delay = delay;
+ input_unlock(ictx);
}
+