[FFmpeg-devel] [PATCH] avformat/libsrt: Fix epoll fd leak

2020-08-25 Thread Nicolas Sugino
Call srt_epoll_release() to avoid fd leak on libsrt_open() error. --- libavformat/libsrt.c | 15 +-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/libavformat/libsrt.c b/libavformat/libsrt.c index 4025b24976..6da372081e 100644 --- a/libavformat/libsrt.c +++ b/libavform

[FFmpeg-devel] [PATCH v4] avformat/libsrt: Close listen fd in listener mode

2020-08-13 Thread Nicolas Sugino
In listener mode the first fd is not closed when libsrt_close() is called because it is overwritten by the new accept fd. Added the listen_fd to the context to properly close it when libsrt_close() is called. Fixes trac ticket #8372 Signed-off-by: Nicolas Sugino --- libavformat/libsrt.c | 12

Re: [FFmpeg-devel] [PATCH] avformat/libsrt: Close listen fd in listener mode

2020-08-13 Thread Nicolas Sugino
El jue., 13 ago. 2020 a las 3:56, Marton Balint () escribió: > > > > On Thu, 13 Aug 2020, Nicolas Sugino wrote: > > > In listener mode the first fd is not closed when libsrt_close() is called > > because it is overwritten by the new accept fd. > > Added the lis

[FFmpeg-devel] [PATCH v3] avformat/libsrt: Close listen fd in listener mode

2020-08-13 Thread Nicolas Sugino
In listener mode the first fd is not closed when libsrt_close() is called because it is overwritten by the new accept fd. Added the listen_fd to the context to properly close it when libsrt_close() is called. Fixes trac ticket #8372 Signed-off-by: Nicolas Sugino --- libavformat/libsrt.c | 10

[FFmpeg-devel] [PATCH v2] avformat/libsrt: Close listen fd in listener mode

2020-08-13 Thread Nicolas Sugino
In listener mode the first fd is not closed when libsrt_close() is called because it is overwritten by the new accept fd. Added the listen_fd to the context to properly close it when libsrt_close() is called. Fixes trac ticket #8372 Signed-off-by: Nicolas Sugino --- libavformat/libsrt.c | 10

[FFmpeg-devel] [PATCH] avformat/libsrt: Close listen fd in listener mode

2020-08-12 Thread Nicolas Sugino
In listener mode the first fd is not closed when libsrt_close() is called because it is overwritten by the new accept fd. Added the listen_fd to the context to properly close it when libsrt_close() is called. Signed-off-by: Nicolas Sugino --- libavformat/libsrt.c | 8 +++- 1 file changed