[FFmpeg-devel] [PATCH 2/5] lavf/demux: treat EAGAIN as REDO unless AVFMT_FLAG_NONBLOCK is set

Anton Khirnov anton at khirnov.net
Mon Nov 14 18:17:36 EET 2022


Quoting Nicolas George (2022-11-14 13:40:35)
> Anton Khirnov (12022-11-14):
> > In what specific case would this supposed busy wait happen and why is it
> > wrong?
> 
> See my mail from 9 Nov 2022 13:42:24 +0100 for explanations about the
> semantic of EAGAIN.

You wrote a whole lot of text and I don't see how any of it applies to
this patch.

The standard convention everywhere is that IO may return EAGAIN in
non-blocking mode and blocks otherwise. And that is exactly what this
patch implements.

-- 
Anton Khirnov


More information about the ffmpeg-devel mailing list