From 51254a678c386cf48f2caa51e06ad34065c8693a Mon Sep 17 00:00:00 2001 From: wm4 Date: Sat, 25 May 2013 18:39:46 +0200 Subject: vo: rip out VO timer wakeup mechanism again This was used by some VOs to do timing of cursor autohiding, but we recently moved that out of the VOs. Even though this mechanism might be a good idea and could be needed again in future (but for what?), it's unused now. So better just get rid of it. --- core/mplayer.c | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) (limited to 'core/mplayer.c') diff --git a/core/mplayer.c b/core/mplayer.c index df6b42973e..0b1bee4179 100644 --- a/core/mplayer.c +++ b/core/mplayer.c @@ -3771,18 +3771,8 @@ static void run_playloop(struct MPContext *mpctx) } } } - if (sleeptime > 0) { - int sleep_ms = sleeptime * 1000; - if (mpctx->sh_video) { - unsigned int vo_sleep = vo_get_sleep_time(mpctx->video_out); - sleep_ms = FFMIN(sleep_ms, vo_sleep); - if (mpctx->mouse_waiting_hide) { - vo_sleep = mpctx->mouse_timer - GetTimerMS(); - sleep_ms = FFMIN(sleep_ms, vo_sleep); - } - } - mp_input_get_cmd(mpctx->input, sleep_ms, true); - } + if (sleeptime > 0) + mp_input_get_cmd(mpctx->input, sleeptime * 1000, true); } //================= Keyboard events, SEEKing ==================== -- cgit v1.2.3