[vorbis-dev] piping vorbize's stdout/stderr

Kenneth C. Arnold kcarnold at yahoo.com
Mon Jul 31 16:21:11 PDT 2000



On Mon, Jul 31, 2000 at 10:48:39PM +0200, Peter Surda wrote:
> On Mon, Jul 31, 2000 at 11:14:11AM -0700, Monty wrote:
> > > Hi!
> > > I want to pipe stdout/stderr from vorbize for wrapper scripts. But as it
> > > doesn't send any "\n"s it doesn't work correctly. I solved it by adding 
> > > 
> > > if (param.verbose == 1) {
> > >   fprintf (stderr, "\n");
> > > }
> > That actually isn't guaranteed to work.  The proper thing to do is 
> > fflush(stderr).

Hmmm... I didn't get Monty's mail, but actually RTFM: stderr is non-buffered.

I'll make up a frontend interface mode if anybody wants it. What kind of format
for the output would you want?

Kenneth

__________________________________________________
Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.
http://im.yahoo.com

--- >8 ----
List archives:  http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/



More information about the Vorbis-dev mailing list