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
committerMichael Niedermayer <michaelni@gmx.at>2012-08-29 00:05:03 +0200
commit7870722592f58d4d1f5beeabfd11b6afc5285e76 (patch)
tree7f04e1f7eff95019fa7e45ee31f832dbb7f326dc /libavformat/url.h
parenta9b1a151d235c7bd41e3458c79ad2160de7e1461 (diff)
Add 'rw_timeout' into URLContext
If set non-zero, limits duration of retry_transfer_wrapper() loop, thus affects ffurl_read*(), ffurl_write() Measured in microseconds. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
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 d88ab52705..5f75dc91e1 100644
--- a/libavformat/url.h
+++ b/libavformat/url.h
@@ -48,6 +48,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 mcs */
} URLContext;
typedef struct URLProtocol {