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

Nicolas George nicolas.george
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.


  Nicolas George
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20110129/c9092270/attachment.pgp>

More information about the ffmpeg-devel mailing list