Mercurial > mplayer.hg
changeset 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 | 75586eb0750d |
children | 4f01aa9c448f |
files | mplayer.c |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/mplayer.c Mon Feb 09 14:31:53 2009 +0000 +++ b/mplayer.c Mon Feb 09 15:43:51 2009 +0000 @@ -2592,6 +2592,8 @@ #endif #if defined(__MINGW32__) || defined(__CYGWIN__) + // stop Windows from showing all kinds of annoying error dialogs + SetErrorMode(0x8003); // request 1ms timer resolution timeBeginPeriod(1); if(proc_priority){