aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarl Eugen Hoyos <cehoyos@ag.or.at>2013-07-10 13:16:28 +0200
committerMichael Niedermayer <michaelni@gmx.at>2013-07-11 12:06:57 +0200
commitfd2cf9c45d3b380cf3dfbdb5dac2fc14caa54de5 (patch)
tree486880216d1e48a80496e162cb1908853908abef
parentfc3dec8b626f8c00fb89d1e66fdfbe9a021ca604 (diff)
downloadffmpeg-fd2cf9c45d3b380cf3dfbdb5dac2fc14caa54de5.tar.gz
Suggest recompilation with openssl or gnutls if the https protocol is not found.
Fixes ticket #2765. (cherry picked from commit 1db88c33f2c0225aae160cc412b62dfaa3a34cbc) Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavformat/avio.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/avio.c b/libavformat/avio.c
index 73b2a29801..5916e46a2e 100644
--- a/libavformat/avio.c
+++ b/libavformat/avio.c
@@ -241,6 +241,8 @@ int ffurl_alloc(URLContext **puc, const char *filename, int flags,
return url_alloc_for_protocol (puc, up, filename, flags, int_cb);
}
*puc = NULL;
+ if (!strcmp("https", proto_str))
+ av_log(NULL, AV_LOG_WARNING, "https protocol not found, recompile with openssl or gnutls enabled.\n");
return AVERROR_PROTOCOL_NOT_FOUND;
}