[FFmpeg-devel] [PATCH V3 1/2] lavf/libsrt: add linger parameter to libsrt

mypopy at gmail.com mypopy at gmail.com
Tue Dec 3 16:01:01 EET 2019


On Tue, Dec 3, 2019 at 7:17 PM Gyan <ffmpeg at gyani.pro> wrote:

>
>
> On 03-12-2019 04:27 pm, Jun Zhao wrote:
> > From: Jun Zhao <barryjzhao at tencent.com>
> >
> > add linger parameter to libsrt, it's setting the number of seconds
> > that the socket waits for unsent data when closing.
> >
> > Reviewed-by: Andriy Gelman <andriy.gelman at gmail.com>
> > Signed-off-by: Jun Zhao <barryjzhao at tencent.com>
> > ---
> >   doc/protocols.texi   |    5 +++++
> >   libavformat/libsrt.c |   13 +++++++++++++
> >   2 files changed, 18 insertions(+), 0 deletions(-)
> >
> > diff --git a/doc/protocols.texi b/doc/protocols.texi
> > index 0e18a49..eab6242 100644
> > --- a/doc/protocols.texi
> > +++ b/doc/protocols.texi
> > @@ -1426,6 +1426,11 @@ the overhead transmission (retransmitted and
> control packets).
> >   file: Set options as for non-live transmission. See @option{messageapi}
> >   for further explanations
> >
> > + at item linger=@var{seconds}
> > +The number of seconds that the socket waits for unsent data when
> closing.
> > +Default is -1. -1 means auto (off with 0 seconds in live mode, on with
> 180
> > +seconds in file mode).
>
> Add range info.
>
> Gyan
>
> Will update the range info as comments, tks


More information about the ffmpeg-devel mailing list