From 6b51b73a0489348ec094c4bf1f30a12c49af9b6d Mon Sep 17 00:00:00 2001 From: wm4 Date: Tue, 22 Jul 2014 19:33:24 +0200 Subject: player: fix idle mode event handling --- player/playloop.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'player') diff --git a/player/playloop.c b/player/playloop.c index d7d1fe33b4..b09a72cca3 100644 --- a/player/playloop.c +++ b/player/playloop.c @@ -1307,9 +1307,9 @@ void idle_loop(struct MPContext *mpctx) vo_check_events(mpctx->video_out); update_osd_msg(mpctx); handle_osd_redraw(mpctx); - mp_cmd_t *cmd = mp_input_get_cmd(mpctx->input, - get_wakeup_period(mpctx) * 1000, + mp_cmd_t *cmd = mp_input_get_cmd(mpctx->input, mpctx->sleeptime * 1000, false); + mpctx->sleeptime = get_wakeup_period(mpctx); if (cmd) run_command(mpctx, cmd); mp_cmd_free(cmd); -- cgit v1.2.3