[MPlayer-dev-eng] [PATCH] xml docs fix and mpst:// docs

Alban Bedel albeu at free.fr
Mon Apr 21 18:54:39 CEST 2003


Hi Diego Biurrun,

on Mon, 21 Apr 2003 18:05:55 +0200 you wrote:

> On Mon, Apr 21, 2003 at 01:41:12PM +0200, Alban Bedel wrote:
> > At least the -use-stdin part should be corrected as it's state
> > that -use-stdin is equivalent to - wich is plain WRONG.
> 
> Wait, what's the difference between -use-stdin and - then?  It's not
> very clear from the description yet..

Ok the name -use-stdin is misleading and my new description is not really
better.
As useal on *nix - mean stdin or stdout (depending on the contex). So
when you put a - on the command line it's a filename (wich here mean
stdin).
But when mplayer read data from stdin it shouldn't try to read key
events from it or everything just goes wrong. So i put this option
wich prevent mplayer from reading key events from stdin.
For conivence -use-stdin is auto-enabled when - is found on the command
line. But in some case we can't know (when parsing the command line)
that stdin will be used for data, hence this option wich allow to
set it mannualy.
In short when putting -use-stdin on the command line mplayer will NOT
read key events from stdin thus letting it free for other uses (like
reading movie data, or whatever).
I hope it's about clear now. As a last resort here is the related code wich
is perhaps easier to understand than my wired english ;)

if(slave_mode)
   mp_input_add_cmd_fd(0,1,NULL,NULL);
else if(!use_stdin)
#ifndef HAVE_NO_POSIX_SELECT
  mp_input_add_key_fd(0,1,NULL,NULL);
#else
  mp_input_add_key_fd(0,0,NULL,NULL);
#endif


	Albeu



More information about the MPlayer-dev-eng mailing list