summaryrefslogtreecommitdiff
path: root/libavformat/url.h
diff options
context:
space:
mode:
authorAndrey Utkin <andrey.krieger.utkin@gmail.com>2012-08-27 16:31:08 +0300
committerMartin Storsjö <martin@martin.st>2016-03-24 10:33:50 +0200
commitccea588f831906084b8c8235222920e6984beb72 (patch)
tree571171710e83cbfc7f3842d4d053b5bb0023b478 /libavformat/url.h
parentd44f3e4059506a182f59218b1e967d42b01e097c (diff)
downloadffmpeg-ccea588f831906084b8c8235222920e6984beb72.tar.gz
avio: Add an option 'rw_timeout'
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ö <martin@martin.st>
Diffstat (limited to 'libavformat/url.h')
-rw-r--r--libavformat/url.h1
1 files changed, 1 insertions, 0 deletions
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 {