mirror of https://git.ffmpeg.org/ffmpeg.git
lavf/tls_gnutls: fix compilation with GnuTLS 2.x
Commit 598e416840
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>
This commit is contained in:
parent
eec67f2522
commit
16c8a9feea
|
@ -72,7 +72,9 @@ static int print_tls_error(URLContext *h, int ret)
|
||||||
switch (ret) {
|
switch (ret) {
|
||||||
case GNUTLS_E_AGAIN:
|
case GNUTLS_E_AGAIN:
|
||||||
case GNUTLS_E_INTERRUPTED:
|
case GNUTLS_E_INTERRUPTED:
|
||||||
|
#ifdef GNUTLS_E_PREMATURE_TERMINATION
|
||||||
case GNUTLS_E_PREMATURE_TERMINATION:
|
case GNUTLS_E_PREMATURE_TERMINATION:
|
||||||
|
#endif
|
||||||
break;
|
break;
|
||||||
case GNUTLS_E_WARNING_ALERT_RECEIVED:
|
case GNUTLS_E_WARNING_ALERT_RECEIVED:
|
||||||
av_log(h, AV_LOG_WARNING, "%s\n", gnutls_strerror(ret));
|
av_log(h, AV_LOG_WARNING, "%s\n", gnutls_strerror(ret));
|
||||||
|
|
Loading…
Reference in New Issue