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 --- fifo.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'fifo.c') diff --git a/fifo.c b/fifo.c index 0c2b35048d..8f7d25505d 100644 --- a/fifo.c +++ b/fifo.c @@ -51,7 +51,7 @@ void mplayer_put_key(int code){ tv.tv_usec = 0; //retval = select(keyb_fifo_put+1, &rfds, NULL, NULL, &tv); - if(select(keyb_fifo_put+1, NULL, &rfds, NULL, &tv)){ + if(select(keyb_fifo_put+1, NULL, &rfds, NULL, &tv)>0){ write(keyb_fifo_put,&code,4); // printf("*** key event %d sent ***\n",code); } else { @@ -71,7 +71,7 @@ int mplayer_get_key(){ tv.tv_usec = 0; //retval = select(keyb_fifo_put+1, &rfds, NULL, NULL, &tv); - if(select(keyb_fifo_put+1, &rfds, NULL, NULL, &tv)){ + if(select(keyb_fifo_put+1, &rfds, NULL, NULL, &tv)>0){ read(keyb_fifo_get,&code,4); // printf("*** key event %d read ***\n",code); } -- cgit v1.2.3