diff options
author | Moritz Barsnick <barsnick@gmx.net> | 2017-09-26 13:25:53 +0200 |
---|---|---|
committer | Carl Eugen Hoyos <ceffmpeg@gmail.com> | 2017-09-26 15:05:00 +0200 |
commit | 16c8a9feeab36239bb7cf5f87fa8cad4dc50ae8c (patch) | |
tree | 9581b72bec9c891d62a3cf8a43db9b508f1a29a0 /libavformat/tls_gnutls.c | |
parent | eec67f25224a48047da57be18b610b11b0fd0bfe (diff) | |
download | ffmpeg-16c8a9feeab36239bb7cf5f87fa8cad4dc50ae8c.tar.gz |
lavf/tls_gnutls: fix compilation with GnuTLS 2.x
Commit 598e41684066feba701d19ca7443d24b9e5efa77 added use of
GNUTLS_E_PREMATURE_TERMINATION, which wasn't introduced to GnuTLS
before 2.99.x / 3.x. This fixes compilation with older versions.
Signed-off-by: Moritz Barsnick <barsnick@gmx.net>
Diffstat (limited to 'libavformat/tls_gnutls.c')
-rw-r--r-- | libavformat/tls_gnutls.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/tls_gnutls.c b/libavformat/tls_gnutls.c index 38f8ea4804..7174dfd3fc 100644 --- a/libavformat/tls_gnutls.c +++ b/libavformat/tls_gnutls.c @@ -72,7 +72,9 @@ static int print_tls_error(URLContext *h, int ret) switch (ret) { case GNUTLS_E_AGAIN: case GNUTLS_E_INTERRUPTED: +#ifdef GNUTLS_E_PREMATURE_TERMINATION case GNUTLS_E_PREMATURE_TERMINATION: +#endif break; case GNUTLS_E_WARNING_ALERT_RECEIVED: av_log(h, AV_LOG_WARNING, "%s\n", gnutls_strerror(ret)); |