From ccea588f831906084b8c8235222920e6984beb72 Mon Sep 17 00:00:00 2001 From: Andrey Utkin Date: Mon, 27 Aug 2012 16:31:08 +0300 Subject: avio: Add an option 'rw_timeout' MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit If set non-zero, this limits duration of the retry_transfer_wrapper() loop, thus affecting ffurl_read*(), ffurl_write(). As soon as one single byte is successfully received/transmitted, the timer restarts. This has further changes by Michael Niedermayer and Martin Storsjö. Signed-off-by: Martin Storsjö --- libavformat/url.h | 1 + 1 file changed, 1 insertion(+) (limited to 'libavformat/url.h') diff --git a/libavformat/url.h b/libavformat/url.h index 482658b7fe..408c674ddf 100644 --- a/libavformat/url.h +++ b/libavformat/url.h @@ -49,6 +49,7 @@ typedef struct URLContext { int is_streamed; /**< true if streamed (no seek possible), default = false */ int is_connected; AVIOInterruptCB interrupt_callback; + int64_t rw_timeout; /**< maximum time to wait for (network) read/write operation completion, in microseconds */ } URLContext; typedef struct URLProtocol { -- cgit v1.2.3