diff options
author | Carl Eugen Hoyos <ceffmpeg@gmail.com> | 2019-09-25 11:32:57 +0200 |
---|---|---|
committer | Carl Eugen Hoyos <ceffmpeg@gmail.com> | 2019-10-01 19:52:47 +0200 |
commit | a650e8c8e957d81959282d9b6c1f20e87f385031 (patch) | |
tree | 0a91014ad467909e0c3d2eafa7574a69ebc4dfd2 /libavformat/avio.c | |
parent | 3bb170e530e3f9885d68e5c684fa82346d7158f4 (diff) | |
download | ffmpeg-a650e8c8e957d81959282d9b6c1f20e87f385031.tar.gz |
lavf/avio: Print https warning also for avio_find_protocol_name().
Helps to fix ticket #8197.
Diffstat (limited to 'libavformat/avio.c')
-rw-r--r-- | libavformat/avio.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/libavformat/avio.c b/libavformat/avio.c index 663789ec02..c1bad312cd 100644 --- a/libavformat/avio.c +++ b/libavformat/avio.c @@ -283,6 +283,9 @@ static const struct URLProtocol *url_find_protocol(const char *filename) } } av_freep(&protocols); + if (av_strstart(filename, "https:", NULL) || av_strstart(filename, "tls:", NULL)) + av_log(NULL, AV_LOG_WARNING, "https protocol not found, recompile FFmpeg with " + "openssl, gnutls or securetransport enabled.\n"); return NULL; } @@ -297,10 +300,6 @@ int ffurl_alloc(URLContext **puc, const char *filename, int flags, return url_alloc_for_protocol(puc, p, filename, flags, int_cb); *puc = NULL; - if (av_strstart(filename, "https:", NULL) || av_strstart(filename, "tls:", NULL)) - av_log(NULL, AV_LOG_WARNING, "https protocol not found, recompile FFmpeg with " - "openssl, gnutls " - "or securetransport enabled.\n"); return AVERROR_PROTOCOL_NOT_FOUND; } |