]> git.sesse.net Git - ffmpeg/commit
avformat/libsrt: fix cleanups on failed libsrt_open() and libsrt_setup()
authorMarton Balint <cus@passwd.hu>
Fri, 9 Oct 2020 19:37:07 +0000 (21:37 +0200)
committerMarton Balint <cus@passwd.hu>
Fri, 16 Oct 2020 21:15:09 +0000 (23:15 +0200)
commitfb0304fcc9f79a4c9cbdf347f20f484529f169ba
tree15bdcf6d2df6bf2e2c8c343b6436461a5f6c28f2
parente704750a9f51b4d3fd9a334da75d781e18a9e00c
avformat/libsrt: fix cleanups on failed libsrt_open() and libsrt_setup()

- Call srt_epoll_release() to avoid fd leak on libsrt_setup() error.
- Call srt_cleanup() on libsrt_open() failure.
- Fix return value and method on mode parsing failure.

Based on a patch by Nicolas Sugino <nsugino@3way.com.ar>.

Signed-off-by: Marton Balint <cus@passwd.hu>
libavformat/libsrt.c