diff options
author | wm4 <wm4@nowhere> | 2014-07-22 19:33:24 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-07-22 19:33:24 +0200 |
commit | 6b51b73a0489348ec094c4bf1f30a12c49af9b6d (patch) | |
tree | c5969500e573a0d8c25e719f69c25c5a802d9ad4 | |
parent | 80d36a0aa297dba0b7039645ec02bbfe36bfb706 (diff) | |
download | mpv-6b51b73a0489348ec094c4bf1f30a12c49af9b6d.tar.bz2 mpv-6b51b73a0489348ec094c4bf1f30a12c49af9b6d.tar.xz |
player: fix idle mode event handling
-rw-r--r-- | player/playloop.c | 4 |
1 files changed, 2 insertions, 2 deletions
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); |