comparison mplayer.c @ 26689:4cf30c0ca561

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.
author reimar
date Sat, 10 May 2008 15:03:04 +0000
parents 0e069fe7cf0d
children d68c3cd43cd4
comparison
equal deleted inserted replaced
26688:b898ca14e114 26689:4cf30c0ca561
686 686
687 void exit_player_with_rc(const char* how, int rc){ 687 void exit_player_with_rc(const char* how, int rc){
688 688
689 if (mpctx->user_muted && !mpctx->edl_muted) mixer_mute(&mpctx->mixer); 689 if (mpctx->user_muted && !mpctx->edl_muted) mixer_mute(&mpctx->mixer);
690 uninit_player(INITIALIZED_ALL); 690 uninit_player(INITIALIZED_ALL);
691 #ifdef WIN32
692 timeEndPeriod(1);
693 #endif
691 #ifdef HAVE_X11 694 #ifdef HAVE_X11
692 #ifdef HAVE_NEW_GUI 695 #ifdef HAVE_NEW_GUI
693 if ( !use_gui ) 696 if ( !use_gui )
694 #endif 697 #endif
695 vo_uninit(); // Close the X11 connection (if any is open). 698 vo_uninit(); // Close the X11 connection (if any is open).
2625 } 2628 }
2626 } 2629 }
2627 #endif 2630 #endif
2628 2631
2629 #ifdef WIN32 2632 #ifdef WIN32
2633 // request 1ms timer resolution
2634 timeBeginPeriod(1);
2630 if(proc_priority){ 2635 if(proc_priority){
2631 int i; 2636 int i;
2632 for(i=0; priority_presets_defs[i].name; i++){ 2637 for(i=0; priority_presets_defs[i].name; i++){
2633 if(strcasecmp(priority_presets_defs[i].name, proc_priority) == 0) 2638 if(strcasecmp(priority_presets_defs[i].name, proc_priority) == 0)
2634 break; 2639 break;