[MPlayer-dev-eng] [PATCH] MINGW input and others

Sascha Sommer saschasommer at freenet.de
Thu Apr 3 21:07:37 CEST 2003


> Hi Sascha Sommer,
>
> on Wed, 2 Apr 2003 17:30:53 +0200 you wrote:
>
> > Hi, attached is a patch that fixes some issues for the mingw port.
> > I'm mainly interest on your comments about the input.c and mplayer.c
> > parts. This patch allows to compile input.c without select(), FD_SET
> > etc. and changes the keyboard input code to work without select by
> > default.
> There is just something i can't get. From the patch you just disabled
> some parts of input.c wich depend on select. But if there is nothing
> avaible from a fd and it will just block, won't it ?

I know it is bad, but most of the code I disabled gets never called when I
do
mp_input_add_key_fd(0,0,NULL,NULL);
I disabled only to get input.c compiled on mingw or anywhere else where
select()
isn't available. Nothing will block because getch2-win doesn't rely on
select. Same for the
modified fifo.c which has own read function.

S. Sommer




More information about the MPlayer-dev-eng mailing list