diff options
author | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2008-05-10 15:03:04 +0000 |
---|---|---|
committer | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2008-05-10 15:03:04 +0000 |
commit | 7420952caf36b0d86e850160dd8689158df6de7c (patch) | |
tree | 124f301de896ed9549286ccf527106820179ed9c /mplayer.c | |
parent | 1290235b5899dc94cdb321a6fa31b600fd953acd (diff) | |
download | mpv-7420952caf36b0d86e850160dd8689158df6de7c.tar.bz2 mpv-7420952caf36b0d86e850160dd8689158df6de7c.tar.xz |
Request a timer resolution of 1 ms on Windows, the default of
between 10 and 55 ms (depending on OS version) is too inaccurate
for our needs.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26721 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'mplayer.c')
-rw-r--r-- | mplayer.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -688,6 +688,9 @@ void exit_player_with_rc(const char* how, int rc){ if (mpctx->user_muted && !mpctx->edl_muted) mixer_mute(&mpctx->mixer); uninit_player(INITIALIZED_ALL); +#ifdef WIN32 + timeEndPeriod(1); +#endif #ifdef HAVE_X11 #ifdef HAVE_NEW_GUI if ( !use_gui ) @@ -2627,6 +2630,8 @@ int gui_no_filename=0; #endif #ifdef WIN32 + // request 1ms timer resolution + timeBeginPeriod(1); if(proc_priority){ int i; for(i=0; priority_presets_defs[i].name; i++){ |