From 5c4c067ee69e4574df385e8efe4502b03fb40970 Mon Sep 17 00:00:00 2001 From: Dudemanguy Date: Sat, 12 Jul 2025 17:40:25 -0500 Subject: [PATCH] Revert "options: parse tls-related options as path" Since the core option parsing does this, we no longer need special handling here. This reverts commit 43e83dc74bb43056634fb2cb91c0dfc3ce047767. --- stream/stream_lavf.c | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/stream/stream_lavf.c b/stream/stream_lavf.c index 7910b82082..a58bcede80 100644 --- a/stream/stream_lavf.c +++ b/stream/stream_lavf.c @@ -199,18 +199,12 @@ void mp_setup_av_network_options(AVDictionary **dict, const char *target_fmt, av_dict_set(dict, "cookies", cookies, 0); } av_dict_set(dict, "tls_verify", opts->tls_verify ? "1" : "0", 0); - if (opts->tls_ca_file) { - char *file = mp_get_user_path(temp, global, opts->tls_ca_file); - av_dict_set(dict, "ca_file", file, 0); - } - if (opts->tls_cert_file) { - char *file = mp_get_user_path(temp, global, opts->tls_cert_file); - av_dict_set(dict, "cert_file", file, 0); - } - if (opts->tls_key_file) { - char *file = mp_get_user_path(temp, global, opts->tls_key_file); - av_dict_set(dict, "key_file", file, 0); - } + if (opts->tls_ca_file) + av_dict_set(dict, "ca_file", opts->tls_ca_file, 0); + if (opts->tls_cert_file) + av_dict_set(dict, "cert_file", opts->tls_cert_file, 0); + if (opts->tls_key_file) + av_dict_set(dict, "key_file", opts->tls_key_file, 0); char *cust_headers = talloc_strdup(temp, ""); if (opts->referrer) { cust_headers = talloc_asprintf_append(cust_headers, "Referer: %s\r\n",