diff options
author | atmos4 <atmos4@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2001-11-20 00:23:49 +0000 |
---|---|---|
committer | atmos4 <atmos4@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2001-11-20 00:23:49 +0000 |
commit | e7df17dcda08cb3bbb5d72494e4adae62721fa77 (patch) | |
tree | 9041be17534a048c2d2b1f59da641a7416a4f199 /fifo.c | |
parent | 3c25d58ba326f40491e6222bcdb180a432495fb5 (diff) | |
download | mpv-e7df17dcda08cb3bbb5d72494e4adae62721fa77.tar.bz2 mpv-e7df17dcda08cb3bbb5d72494e4adae62721fa77.tar.xz |
Profiling fix by Artur Skawina <skawina@geocities.com>
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@3015 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'fifo.c')
-rw-r--r-- | fifo.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); } |