[MPlayer-dev-eng] PATCH: disable stdin buffer when reading from stdin

D Richard Felker III dalias at aerifal.cx
Tue Apr 30 00:02:55 CEST 2002


On Mon, Apr 29, 2002 at 11:11:05PM +0200, Arpi wrote:
> Hi,
> 
> > > > > > According to setvbuf(3) setvbuf is in ANSI C.
> 
> if i understood right, it disables line buffering on teh given file, in teh
> patch for stdin. it may work if it really disables tty buffering...
> but it's ugly.
> 
> but note, that getch2_enable() does the same!
> so, please check if getch2-enable() solves your problem.
> imho it's safe to call even for stdin file reading. it just disabel ECHO and
> line buffering.

TTY buffering should only be involved if stdin is a TTY, in which case
I don't think you'd be playing a movie from stdin...

Rich





More information about the MPlayer-dev-eng mailing list