[MPlayer-dev-eng] question about posix select

Sascha Sommer saschasommer at freenet.de
Thu Jan 18 14:08:10 CET 2007


Hi,

On Thursday 18 January 2007 12:13, Mate Miklos wrote:
> Hi,
>
> can anyone tell me what is the reason for the HAVE_NO_POSIX_SELECT macro
> controlled by configure? Which OS's don't have posix select?
>

Windows

> This macro is only used in input/input.c and libmpcodecs/vf_bmovl.c, but
> the select() call is used in various other places as well, eg.
> stream/tcp.c, stream/stream_ftp.c.
>
> What's more interesting, input.c:mp_input_read_key_code() calls getch2()
> which uses select() again, but without the guarding macro.
>
> The getch2.c file has an alternative, getch2-win.c, so I guess windoze
> doesn't have select(), but then how does the above two streams compile on
> windoze?
>
> Or, if a Unix-like OS doesn't have select() (which is highly unlikely...),
> then the following audio out drivers shouldn't compile because of select()
> usage: ao_oss, ao_sun, ao_esd
>
> (and libavformat also uses select() in rtpproto.c, tcp.c, audio.c and
> rtsp.c ...)
>
> Personally I use Linux, so I'm not affected by this, I'm just curious...
>

Windows has select() but it can only be used for network sockets.
Not for stdin etc.

Regards

Sascha



More information about the MPlayer-dev-eng mailing list