[MPlayer-cvslog] r26721 - trunk/mplayer.c

reimar subversion at mplayerhq.hu
Sat May 10 17:03:04 CEST 2008


Author: reimar
Date: Sat May 10 17:03:04 2008
New Revision: 26721

Log:
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.

Modified:
   trunk/mplayer.c

Modified: trunk/mplayer.c
==============================================================================
--- trunk/mplayer.c	(original)
+++ trunk/mplayer.c	Sat May 10 17:03:04 2008
@@ -688,6 +688,9 @@ void exit_player_with_rc(const char* how
 
   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++){



More information about the MPlayer-cvslog mailing list