diff options
author | Alexander Preisinger <alexander.preisinger@gmail.com> | 2014-09-19 17:48:06 +0200 |
---|---|---|
committer | Alexander Preisinger <alexander.preisinger@gmail.com> | 2014-09-19 17:48:06 +0200 |
commit | 30175538fef26d62202bf582de9fa665dd8f6260 (patch) | |
tree | fcb00ab325b488ef73c1f660a787610970e5e6ef | |
parent | b99c67f9bbe387444445def6db166c12fa34ca85 (diff) | |
download | mpv-30175538fef26d62202bf582de9fa665dd8f6260.tar.bz2 mpv-30175538fef26d62202bf582de9fa665dd8f6260.tar.xz |
input: add locking for repeat info
-rw-r--r-- | input/input.c | 3 |
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); } + |