[FFmpeg-devel] [PATCH 3/3] Non-blocking protocols: TCP
Sat Jan 29 21:21:21 CET 2011
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.
But this requires careful review.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 198 bytes
Desc: Digital signature
More information about the ffmpeg-devel