diff options
author | arpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-09-22 15:37:51 +0000 |
---|---|---|
committer | arpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-09-22 15:37:51 +0000 |
commit | 2558c30739bd52854bde3bc6ef58177fb415b3c1 (patch) | |
tree | 183f40fdc676c7a95e9592727cef65055234f59d /fifo.c | |
parent | 5b7905fdd28563c413da624ffa9afe4afdd88600 (diff) | |
download | mpv-2558c30739bd52854bde3bc6ef58177fb415b3c1.tar.bz2 mpv-2558c30739bd52854bde3bc6ef58177fb415b3c1.tar.xz |
removed unused old keyboard fifo hack
removed unused allow_dshow hack
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7484 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'fifo.c')
-rw-r--r-- | fifo.c | 50 |
1 files changed, 0 insertions, 50 deletions
@@ -10,36 +10,6 @@ static void make_pipe(int* pr,int* pw){ *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 @@ void mplayer_put_key(int code){ // 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; -} - |