[FFmpeg-devel] [PATCH] ffmpeg: modify tty state when stderr is redirected

wm4 nfxjfg at googlemail.com
Wed Jul 29 22:16:53 CEST 2015


On Wed, 29 Jul 2015 21:27:09 +0200
Michael Niedermayer <michael at niedermayer.cc> wrote:

> On Wed, Jul 29, 2015 at 02:43:52PM -0400, Ganesh Ajjanagadde wrote:
> > On Mon, Jul 27, 2015 at 9:56 AM, Ganesh Ajjanagadde
> > <gajjanagadde at gmail.com> wrote:
> > > This fixes Ticket2964
> > >
> > > Signed-off-by: Ganesh Ajjanagadde <gajjanagadde at gmail.com>
> > > ---
> > >  ffmpeg.c | 2 +-
> > >  1 file changed, 1 insertion(+), 1 deletion(-)
> > >
> > > diff --git a/ffmpeg.c b/ffmpeg.c
> > > index 751c7d3..98f812e 100644
> > > --- a/ffmpeg.c
> > > +++ b/ffmpeg.c
> > > @@ -372,7 +372,7 @@ void term_init(void)
> > >          struct termios tty;
> > >          int istty = 1;
> > >  #if HAVE_ISATTY
> > > -        istty = isatty(0) && isatty(2);
> > > +        istty = isatty(0);
> > >  #endif
> > >          if (istty && tcgetattr (0, &tty) == 0) {
> > >              oldtty = tty;
> > 
> > ping
> 
> i dont mind applying this but i dont remember why it was there
> so this might break somethig and someone might then have to revert
> 
> [...]

You added it only 3 years ago: c8a11014b673ebc6946db6fcd20009d330c57c48


More information about the ffmpeg-devel mailing list