From e7df17dcda08cb3bbb5d72494e4adae62721fa77 Mon Sep 17 00:00:00 2001 From: atmos4 Date: Tue, 20 Nov 2001 00:23:49 +0000 Subject: Profiling fix by Artur Skawina git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@3015 b3059339-0415-0410-9bf9-f77b7e298cf2 --- linux/getch2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'linux') diff --git a/linux/getch2.c b/linux/getch2.c index 86161e2663..693f2afa0c 100644 --- a/linux/getch2.c +++ b/linux/getch2.c @@ -130,7 +130,7 @@ int getch2(int time){ /* 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; -- cgit v1.2.3