aboutsummaryrefslogtreecommitdiffhomepage
path: root/options
diff options
context:
space:
mode:
authorGravatar wm4 <wm4@nowhere>2015-02-06 17:01:35 +0100
committerGravatar wm4 <wm4@nowhere>2015-02-06 17:01:35 +0100
commitf3ae845fd294c0f8c08473e4a1245d643b4477ff (patch)
tree782c775e98a7d7df0bf6acfb3158c733c1a70382 /options
parentffe894ec0a73ab6a16ce1ca62800bf1612542107 (diff)
options: add --network-timeout
Not quite sure if this actually works as intended. Fixes #1566.
Diffstat (limited to 'options')
-rw-r--r--options/options.c2
-rw-r--r--options/options.h1
2 files changed, 3 insertions, 0 deletions
diff --git a/options/options.c b/options/options.c
index a7f6ab193f..55b444a983 100644
--- a/options/options.c
+++ b/options/options.c
@@ -173,6 +173,7 @@ const m_option_t mp_opts[] = {
{"http", 3})),
OPT_FLAG("tls-verify", network_tls_verify, 0),
OPT_STRING("tls-ca-file", network_tls_ca_file, M_OPT_FILE),
+ OPT_DOUBLE("network-timeout", network_timeout, M_OPT_MIN, .min = 0),
// ------------------------- demuxer options --------------------
@@ -730,6 +731,7 @@ const struct MPOpts mp_default_opts = {
.demuxer_min_bytes = 0,
.demuxer_min_secs = 0.2,
.network_rtsp_transport = 2,
+ .network_timeout = 0.0,
.hls_bitrate = 2,
.demuxer_min_secs_cache = 2,
.cache_pausing = 1,
diff --git a/options/options.h b/options/options.h
index 6c74fd3ed7..c558176940 100644
--- a/options/options.h
+++ b/options/options.h
@@ -274,6 +274,7 @@ typedef struct MPOpts {
char **network_http_header_fields;
int network_tls_verify;
char *network_tls_ca_file;
+ double network_timeout;
struct tv_params *tv_params;
struct pvr_params *stream_pvr_opts;