[MPlayer-dev-eng] Re: Slave mode and pipes

Alexander Neundorf neundorf at dellingsoft.de
Wed May 22 07:52:31 CEST 2002


On Wednesday 22 May 2002 03:53, you wrote:
> On Tue, 21 May 2002, murban wrote:
> > The program does start mplayer, but it is not able to get mplayer to
> > respond to commands.
>
> Output to a pipe is block buffered, so you need to fflush(stream)
> after the fprintf.
>
> Alternatively, you can set the buffering mode of stream to "line
> buffered" using setvbuf(stream, NULL, _IOLBF, 0) before you start
> printing.
>
> Eric

Well, that's why I sent the patch to the mailing list which does this call in 
mplayer main() when readig from stdin (but you all convinced my that it can't 
have the effect it has apparently on my system :-P)

Bye
Alex



More information about the MPlayer-dev-eng mailing list