[FFmpeg-devel] [PATCH 3/3] avformat/udp: Enable FIFO when using windows sockets.

Nicolas George george at nsup.org
Wed Dec 7 19:49:33 EET 2016


Le septidi 17 frimaire, an CCXXV, Hendrik Leppkes a écrit :
> I'm not sure you can safely avoid that in this design when dealing
> with a fully generic library and no information or control whats going
> on in other threads.

You are right, I had not realized there was a race condition here.

What happens if shutdown() is performed but not close()?

> The "proper" win32 way of doing non-polling IO is using the Overlapped
> IO functions, which runs async and signals event objects when
> something happens - but that would practically require re-implementing
> the entire worker thread for win32.

The receiving worker thread is less than 60 lines, the sending one is
100 lines because of the rate control code that can certainly be
factored. All in all, that would not be that terrible, and if done
cleanly can be reused later for more generic code.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20161207/6245a812/attachment.sig>


More information about the ffmpeg-devel mailing list