summaryrefslogtreecommitdiffstats
path: root/player
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-02-06 21:04:24 +0100
committerwm4 <wm4@nowhere>2014-02-10 01:12:34 +0100
commitc6166ff448432dc74c300933e5c93838d06c420a (patch)
tree4697e0fb88c2380cc5e5214c14a756c9ad88c0f3 /player
parent8437356b6c615ac93f49fe122a591a229722dbe8 (diff)
downloadmpv-c6166ff448432dc74c300933e5c93838d06c420a.tar.bz2
mpv-c6166ff448432dc74c300933e5c93838d06c420a.tar.xz
timer: init only once
This avoids trouble if another mpv instance is initialized in the same process. Since timeBeginPeriod/timeEndPeriod are hereby not easily matched anymore, use an atexit() handler to call timeEndPeriod, so that we can be sure these calls are matched, even if we allow multiple initializations later when introducing the client API.
Diffstat (limited to 'player')
-rw-r--r--player/main.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/player/main.c b/player/main.c
index 1709776fa7..e0371cc5ca 100644
--- a/player/main.c
+++ b/player/main.c
@@ -130,10 +130,6 @@ static MP_NORETURN void exit_player(struct MPContext *mpctx,
mp_lua_uninit(mpctx);
#endif
-#if defined(__MINGW32__)
- timeEndPeriod(1);
-#endif
-
#if HAVE_COCOA
cocoa_set_input_context(NULL);
#endif