comparison mplayer.c @ 28462:f26f60223e72

Use SetErrorMode so Windows will not show all kinds of error dialogs we do not want.
author reimar
date Mon, 09 Feb 2009 15:43:51 +0000
parents f02a92b6d0a4
children 3f597aacbb69
comparison
equal deleted inserted replaced
28461:75586eb0750d 28462:f26f60223e72
2590 } 2590 }
2591 } 2591 }
2592 #endif 2592 #endif
2593 2593
2594 #if defined(__MINGW32__) || defined(__CYGWIN__) 2594 #if defined(__MINGW32__) || defined(__CYGWIN__)
2595 // stop Windows from showing all kinds of annoying error dialogs
2596 SetErrorMode(0x8003);
2595 // request 1ms timer resolution 2597 // request 1ms timer resolution
2596 timeBeginPeriod(1); 2598 timeBeginPeriod(1);
2597 if(proc_priority){ 2599 if(proc_priority){
2598 int i; 2600 int i;
2599 for(i=0; priority_presets_defs[i].name; i++){ 2601 for(i=0; priority_presets_defs[i].name; i++){