[Mplayer-cvslog] CVS: main fifo.c,1.1,1.2

Atmosfear atmos4 at mplayer.dev.hu
Tue Nov 20 01:23:52 CET 2001


Update of /cvsroot/mplayer/main
In directory mplayer:/var/tmp.root/cvs-serv25266

Modified Files:
	fifo.c 
Log Message:
Profiling fix by Artur Skawina <skawina at geocities.com>


Index: fifo.c
===================================================================
RCS file: /cvsroot/mplayer/main/fifo.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- fifo.c	16 Mar 2001 00:06:50 -0000	1.1
+++ fifo.c	20 Nov 2001 00:23:49 -0000	1.2
@@ -51,7 +51,7 @@
            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 @@
            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);
            }




More information about the MPlayer-cvslog mailing list