mirror of
https://github.com/mpv-player/mpv
synced 2025-03-05 13:47:39 +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);
|
if (mpctx->user_muted && !mpctx->edl_muted) mixer_mute(&mpctx->mixer);
|
||||||
uninit_player(INITIALIZED_ALL);
|
uninit_player(INITIALIZED_ALL);
|
||||||
|
#ifdef WIN32
|
||||||
|
timeEndPeriod(1);
|
||||||
|
#endif
|
||||||
#ifdef HAVE_X11
|
#ifdef HAVE_X11
|
||||||
#ifdef HAVE_NEW_GUI
|
#ifdef HAVE_NEW_GUI
|
||||||
if ( !use_gui )
|
if ( !use_gui )
|
||||||
@ -2627,6 +2630,8 @@ int gui_no_filename=0;
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef WIN32
|
#ifdef WIN32
|
||||||
|
// request 1ms timer resolution
|
||||||
|
timeBeginPeriod(1);
|
||||||
if(proc_priority){
|
if(proc_priority){
|
||||||
int i;
|
int i;
|
||||||
for(i=0; priority_presets_defs[i].name; i++){
|
for(i=0; priority_presets_defs[i].name; i++){
|
||||||
|
Loading…
Reference in New Issue
Block a user