Re: [FFmpeg-devel] Race condition in libavformat/libsrt.c causes EOF to be missed

2021-01-30 Thread Marton Balint
On Fri, 29 Jan 2021, Belabox Project wrote: Hi, The way SRT's async / epoll-based IO works is that the event status is stored in the epoll containers. That is, if an event occurs on an SRT socket, and that SRT socket isn't part of any epoll container, then that event is lost. If we later add

[FFmpeg-devel] Race condition in libavformat/libsrt.c causes EOF to be missed

2021-01-28 Thread Belabox Project
Hi, I've ran into a bug in libavformat's libsrt while using OBS. It's still present as of commit ed51890191. I've tracked down the issue and implemented a workaround, but a possible misunderstanding of SRT's asynchronous functionality which caused this issue seems to be permeating the implementati