[FFmpeg-devel] [PATCH] ffmpeg: enable echoing with command and debug modes
Clément Bœsch
u at pkh.me
Fri Dec 4 15:53:53 CET 2015
On Fri, Nov 20, 2015 at 03:35:35AM +0100, Michael Niedermayer wrote:
> On Thu, Nov 19, 2015 at 11:23:38PM +0100, Clément Bœsch wrote:
> > On Thu, Nov 19, 2015 at 11:16:46PM +0100, Michael Niedermayer wrote:
> > > On Thu, Nov 19, 2015 at 10:54:45PM +0100, Clément Bœsch wrote:
> > > > Allow seeing text when pressing 'c' or 'd'.
> > > > ---
> > > > ffmpeg.c | 18 ++++++++++++++++++
> > > > 1 file changed, 18 insertions(+)
> > >
> > > >
> > > > diff --git a/ffmpeg.c b/ffmpeg.c
> > > > index c4e9280..8d558e3 100644
> > > > --- a/ffmpeg.c
> > > > +++ b/ffmpeg.c
> > > > @@ -3395,6 +3395,18 @@ static OutputStream *choose_output(void)
> > > > return ost_min;
> > > > }
> > > >
> > > > +static void set_tty_echo(int on)
> > > > +{
> > > > +#if HAVE_TERMIOS_H
> > > > + struct termios tty;
> > > > + if (tcgetattr(0, &tty) == 0) {
> > > > + if (on) tty.c_lflag |= ECHO;
> > > > + else tty.c_lflag &= ~ECHO;
> > > > + tcsetattr(0, TCSANOW, &tty);
> > > > + }
> > >
> > > this might need a if !run_as_daemon
> >
> > can you enter the command system when running as daemon?
>
> i thught one could pipe from stdin but on second look i think you
> are correct, its not possibly
> so patch should be fine as is
>
patch applied, thanks
--
Clément B.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20151204/9d514b0c/attachment.sig>
More information about the ffmpeg-devel
mailing list