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

Nicolas George george at nsup.org
Mon Nov 14 18:22:19 EET 2022


Anton Khirnov (12022-11-14):
> 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.

To implement blocking on top of EAGAIN, a sleep is necessary.

REDO must not sleep.

-- 
  Nicolas George


More information about the ffmpeg-devel mailing list