[FFmpeg-devel] [PATCH 1/2] Add 'rw_timeout' into URLContext
Nicolas George
nicolas.george at normalesup.org
Wed Aug 29 09:44:48 CEST 2012
Le tridi 13 fructidor, an CCXX, Andrey Utkin a écrit :
> 1) ifdef-ing retry_transfer_wrapper to plain call to transfer_func if
> networking disabled. But what if in future we have a protocol for
> asynchronous work with local files?
No need to wait for that: pipes already need retry_transfer_wrapper.
> 3) Replace ETIMEDOUT with EAGAIN in return statement. Acceptable, but
> not elegant to me.
A protocol in blocking mode should not return EAGAIN.
> 4) Something like the below...
5)
#define AVERROR_TIMEOUT FFERRTAG('T','M','O','U')
Bonus: it allows to distinguish a timeout requested to lavf from a timeout
issued from the network layer.
Regards,
--
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://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20120829/cf222b2f/attachment.asc>
More information about the ffmpeg-devel
mailing list