mirror of
https://github.com/mpv-player/mpv
synced 2025-03-05 05:37:37 +00: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:
parent
1290235b58
commit
7420952caf
@ -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++){
|
||||
|
Loading…
Reference in New Issue
Block a user