[MPlayer-cvslog] CVS: main/osdep getch2-win.c,1.10,1.11

Reimar Döffinger CVS syncmail at mplayerhq.hu
Mon Apr 10 14:42:12 CEST 2006


CVS change done by Reimar Döffinger CVS

Update of /cvsroot/mplayer/main/osdep
In directory mail:/var2/tmp/cvs-serv1945

Modified Files:
	getch2-win.c 
Log Message:
getch2 should wait for input. Fixes 100% CPU usage during cache fill.


Index: getch2-win.c
===================================================================
RCS file: /cvsroot/mplayer/main/osdep/getch2-win.c,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -r1.10 -r1.11
--- getch2-win.c	29 Dec 2005 11:27:21 -0000	1.10
+++ getch2-win.c	10 Apr 2006 12:42:10 -0000	1.11
@@ -36,6 +36,7 @@
    	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());




More information about the MPlayer-cvslog mailing list