From f3ae845fd294c0f8c08473e4a1245d643b4477ff Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 6 Feb 2015 17:01:35 +0100 Subject: options: add --network-timeout Not quite sure if this actually works as intended. Fixes #1566. --- options/options.c | 2 ++ options/options.h | 1 + 2 files changed, 3 insertions(+) (limited to 'options') 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; -- cgit v1.2.3