[Mplayer-cvslog] CVS: main mplayer.c,1.569,1.570 fifo.c,1.2,1.3

Arpi of Ize arpi at mplayerhq.hu
Sun Sep 22 17:37:54 CEST 2002


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

Modified Files:
	mplayer.c fifo.c 
Log Message:
removed unused old keyboard fifo hack
removed unused allow_dshow hack


Index: mplayer.c
===================================================================
RCS file: /cvsroot/mplayer/main/mplayer.c,v
retrieving revision 1.569
retrieving revision 1.570
diff -u -r1.569 -r1.570
--- mplayer.c	22 Sep 2002 02:33:21 -0000	1.569
+++ mplayer.c	22 Sep 2002 15:37:51 -0000	1.570
@@ -180,15 +180,6 @@
 char *audio_fm=NULL;    // override audio codec family 
 char *video_fm=NULL;    // override video codec family 
 
-// IMHO this stuff is no longer of use, or is there a special
-// reason why dshow should be completely disabled? - atmos ::
-// yes, people without working c++ compiler can disable it - A'rpi
-#ifdef USE_DIRECTSHOW
-int allow_dshow=1;
-#else
-int allow_dshow=0;
-#endif
-
 // streaming:
 int audio_id=-1;
 int video_id=-1;
@@ -1874,7 +1865,6 @@
 #endif
 
   if(osd_function==OSD_PAUSE){
-    int pkey=-1;
     mp_cmd_t* cmd;
       if(!quiet) {
 	mp_msg(MSGT_CPLAYER,MSGL_STATUS,MSGTR_Paused);
@@ -1891,7 +1881,6 @@
 
       while( (cmd = mp_input_get_cmd(20,1)) == NULL) {
 	     if(sh_video && video_out && vo_config_count) video_out->check_events();
-             if((pkey=mplayer_get_key()) > 0) break;
 #ifdef HAVE_NEW_GUI
              if(use_gui){
 		guiEventHandling();
@@ -1915,8 +1904,6 @@
         guiGetEvent( guiCEvent,(char *)guiSetPlay );
        }
 #endif
-      if(pkey!=32 && pkey!=112 && pkey!=-1)
-        mplayer_put_key(pkey); // pass on the key
   }
 
 // handle -sstep

Index: fifo.c
===================================================================
RCS file: /cvsroot/mplayer/main/fifo.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- fifo.c	20 Nov 2001 00:23:49 -0000	1.2
+++ fifo.c	22 Sep 2002 15:37:51 -0000	1.3
@@ -10,36 +10,6 @@
   *pw=temp[1];
 }
 
-static inline int my_write(int fd,unsigned char* mem,int len){
-  int total=0;
-  int len2;
-  while(len>0){
-    len2=write(fd,mem+total,len); if(len2<=0) break;
-    total+=len2;len-=len2;
-//    printf("%d bytes received, %d left\n",len2,len);
-  }
-  return total;
-}
-
-static inline int my_read(int fd,unsigned char* mem,int len){
-  int total=0;
-  int len2;
-  while(len>0){
-    len2=read(fd,mem+total,len); if(len2<=0) break;
-    total+=len2;len-=len2;
-//    printf("%d bytes received, %d left\n",len2,len);
-  }
-  return total;
-}
-
-
-void send_cmd(int fd,int cmd){
-  int fifo_cmd=cmd;
-  write(fd,&fifo_cmd,4);
-//  fflush(control_fifo);
-}
-
-
 void mplayer_put_key(int code){
            fd_set rfds;
            struct timeval tv;
@@ -58,23 +28,3 @@
 //             printf("*** key event dropped (FIFO is full) ***\n");
            }
 }
-
-int mplayer_get_key(){
-           fd_set rfds;
-           struct timeval tv;
-           int code=-1;
-
-           /* Watch stdin (fd 0) to see when it has input. */
-           FD_ZERO(&rfds);
-           FD_SET(keyb_fifo_get, &rfds);
-           tv.tv_sec = 0;
-           tv.tv_usec = 0;
-
-           //retval = 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);
-           }
-           return code;
-}
-




More information about the MPlayer-cvslog mailing list