[Mplayer-cvslog] CVS: main/input input.c,1.15,1.16

Alban Bedel CVS albeu at mplayer.dev.hu
Thu Feb 28 14:49:06 CET 2002


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

Modified Files:
	input.c 
Log Message:
Fix when stdin is used as a file


Index: input.c
===================================================================
RCS file: /cvsroot/mplayer/main/input/input.c,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -r1.15 -r1.16
--- input.c	25 Feb 2002 13:14:27 -0000	1.15
+++ input.c	28 Feb 2002 13:49:04 -0000	1.16
@@ -634,6 +634,7 @@
     if((unsigned int)i >= num_key_fd) {
       i = -1;
       last_loop++;
+      last_loop %= (num_key_fd+1);
       continue;
     }
     // No input from this fd
@@ -785,6 +786,7 @@
     if((unsigned int)i >= num_cmd_fd) {
       i = -1;
       last_loop++;
+      last_loop %= (num_cmd_fd+1);
       continue;
     }
     if( ! (cmd_fds[i].flags & MP_FD_NO_SELECT) && ! FD_ISSET(cmd_fds[i].fd,&fds) && ! (cmd_fds[i].flags & MP_FD_GOT_CMD) )




More information about the MPlayer-cvslog mailing list