From cfcf67ee5e3035a49542a58e1b2bda28c956e231 Mon Sep 17 00:00:00 2001 From: reimar Date: Mon, 10 Apr 2006 12:42:10 +0000 Subject: getch2 should wait for input. Fixes 100% CPU usage during cache fill. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18071 b3059339-0415-0410-9bf9-f77b7e298cf2 --- osdep/getch2-win.c | 1 + 1 file changed, 1 insertion(+) (limited to 'osdep') diff --git a/osdep/getch2-win.c b/osdep/getch2-win.c index 449a44b7b4..b2495e65b0 100644 --- a/osdep/getch2-win.c +++ b/osdep/getch2-win.c @@ -36,6 +36,7 @@ int getch2(int time){ int i=0; if(!getch2_status)return -1; /*check if there are input events*/ + WaitForSingleObject(stdin, time); if(!GetNumberOfConsoleInputEvents(stdin,&retval)) { printf("getch2: can't get number of input events: %i\n",GetLastError()); -- cgit v1.2.3