summaryrefslogtreecommitdiffstats
path: root/video/out/vo.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-05-25 18:39:46 +0200
committerwm4 <wm4@nowhere>2013-05-26 16:44:20 +0200
commit51254a678c386cf48f2caa51e06ad34065c8693a (patch)
tree2a6bd525ae6db1582c7c1c752a722695dd6560b4 /video/out/vo.c
parent561aab2d770776fcc60a03f3aca20782572b9a36 (diff)
downloadmpv-51254a678c386cf48f2caa51e06ad34065c8693a.tar.bz2
mpv-51254a678c386cf48f2caa51e06ad34065c8693a.tar.xz
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.
Diffstat (limited to 'video/out/vo.c')
-rw-r--r--video/out/vo.c15
1 files changed, 0 insertions, 15 deletions
diff --git a/video/out/vo.c b/video/out/vo.c
index de73d35ecc..bf4f1660e1 100644
--- a/video/out/vo.c
+++ b/video/out/vo.c
@@ -228,7 +228,6 @@ void vo_flip_page(struct vo *vo, unsigned int pts_us, int duration)
void vo_check_events(struct vo *vo)
{
- vo->next_wakeup_time = GetTimerMS() + 60 * 1000;
if (!vo->config_ok) {
if (vo->registered_fd != -1)
mp_input_rm_key_fd(vo->input_ctx, vo->registered_fd);
@@ -238,20 +237,6 @@ void vo_check_events(struct vo *vo)
vo_control(vo, VOCTRL_CHECK_EVENTS, NULL);
}
-// Return the amount of time vo_check_events() should be called in milliseconds.
-// Note: video timing is completely separate from this.
-unsigned int vo_get_sleep_time(struct vo *vo)
-{
- unsigned int sleep = 60 * 1000;
- if (vo->config_ok && vo->next_wakeup_time) {
- unsigned int now = GetTimerMS();
- sleep = 0;
- if (vo->next_wakeup_time >= now)
- sleep = vo->next_wakeup_time - now;
- }
- return sleep;
-}
-
void vo_seek_reset(struct vo *vo)
{
vo_control(vo, VOCTRL_RESET, NULL);