[FFmpeg-devel] [PATCH 3/5] lavf: replace FFERROR_REDO with AVERROR(EAGAIN)

Nicolas George george at nsup.org
Wed Nov 9 10:21:34 EET 2022


Anton Khirnov (12022-11-08):
> Sure, and that's about it. And as I said before - there is no way to
> tell when a device will be ready, so this is of very limited usefulness.

This is not true for many devices. Sorry to contradict you once again,
but you would know it if you had any experience working with devices.

> That is not a meaningful difference. A meaningful difference would be
> one that has actionable consequences.

Well, it has actionable consequences: if you treat EAGAIN like REDO you
introduce a busy wait, and if you treat REDO like EAGAIN you introduce a
significant slowness. Now that you make me mention it, I remember it was
precisely the reason I introduced REDO: to fix a slowness in resyncs.

-- 
  Nicolas George


More information about the ffmpeg-devel mailing list