1
mirror of https://github.com/mpv-player/mpv synced 2024-08-04 14:59:58 +02:00

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
This commit is contained in:
reimar 2008-05-10 15:03:04 +00:00
parent 1290235b58
commit 7420952caf

View File

@ -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++){