diff options
Diffstat (limited to 'mpvcore/options.c')
-rw-r--r-- | mpvcore/options.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/mpvcore/options.c b/mpvcore/options.c index e3b3137aed..afeb7e80fa 100644 --- a/mpvcore/options.c +++ b/mpvcore/options.c @@ -382,6 +382,11 @@ const m_option_t mp_opts[] = { {"referrer", &network_referrer, CONF_TYPE_STRING, 0, 0, 0, NULL}, {"cookies", &network_cookies_enabled, CONF_TYPE_FLAG, 0, 0, 1, NULL}, {"cookies-file", &cookies_file, CONF_TYPE_STRING, 0, 0, 0, NULL}, + OPT_CHOICE("rtsp-transport", network_rtsp_transport, 0, + ({"lavf", 0}, + {"udp", 1}, + {"tcp", 2}, + {"http", 3})), // ------------------------- demuxer options -------------------- @@ -794,6 +799,7 @@ const struct MPOpts mp_default_opts = { .stream_cache_min_percent = 20.0, .stream_cache_seek_min_percent = 50.0, .stream_cache_pause = 10.0, + .network_rtsp_transport = 2, .chapterrange = {-1, -1}, .edition_id = -1, .default_max_pts_correction = -1, |