[FFmpeg-devel] [PATCH 3/3] Non-blocking protocols: TCP

Martin Storsjö martin
Sat Jan 29 21:30:26 CET 2011

On Sat, 29 Jan 2011, Nicolas George wrote:

> Le decadi 10 pluvi?se, an CCXIX, Martin Storsj? a ?crit?:
> > Uhm, for the blocking case, wouldn't you need to loop on waiting for the 
> > fd to become readable? Otherwise we'd return EAGAIN after 100 ms.
> > 
> > Also, in such a loop, you must check url_interrupt_cb(), in order to be 
> > able to abort the blocking wait externally.
> I moved that (plus checking for EINTR, which was missing here I believe) in
> the avio.c:retry_transfer_wrapper; cf patch #2. That way, it works the same
> for every protocol with less code duplication.

Ah, I see. Yes, that might make sense.

// Martin

More information about the ffmpeg-devel mailing list