input: add locking for repeat info

This commit is contained in:
Alexander Preisinger 2014-09-19 17:48:06 +02:00
parent b99c67f9bb
commit 30175538fe
1 changed files with 3 additions and 0 deletions

View File

@ -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);
}