From c6166ff448432dc74c300933e5c93838d06c420a Mon Sep 17 00:00:00 2001 From: wm4 Date: Thu, 6 Feb 2014 21:04:24 +0100 Subject: 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. --- player/main.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'player/main.c') 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 -- cgit v1.2.3