[Mplayer-cvslog] CVS: main/linux getch2.c,1.8,1.9
Atmosfear
atmos4 at mplayer.dev.hu
Tue Nov 20 01:23:52 CET 2001
Update of /cvsroot/mplayer/main/linux
In directory mplayer:/var/tmp.root/cvs-serv25266/linux
Modified Files:
getch2.c
Log Message:
Profiling fix by Artur Skawina <skawina at geocities.com>
Index: getch2.c
===================================================================
RCS file: /cvsroot/mplayer/main/linux/getch2.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- getch2.c 19 Nov 2001 17:03:38 -0000 1.8
+++ getch2.c 20 Nov 2001 00:23:49 -0000 1.9
@@ -130,7 +130,7 @@
/* Wait up to 'time' microseconds. */
tv.tv_sec=time/1000; tv.tv_usec = (time%1000)*1000;
retval=select(1, &rfds, NULL, NULL, &tv);
- if(!retval) return -1;
+ if(retval<=0) return -1;
/* Data is available now. */
retval=read(0,&getch2_buf[getch2_len],BUF_LEN-getch2_len);
if(retval<1) return -1;
More information about the MPlayer-cvslog
mailing list