1
0
mirror of https://github.com/mpv-player/mpv synced 2025-01-28 18:53:02 +00:00

player: fix idle mode event handling

This commit is contained in:
wm4 2014-07-22 19:33:24 +02:00
parent 80d36a0aa2
commit 6b51b73a04

View File

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