]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/tls_gnutls.c
hwcontext_vaapi: Return all formats for constraints without config
[ffmpeg] / libavformat / tls_gnutls.c
index 0fade36ed6dc1a196b223f64aba4c00a7f0dab65..3e29a45ce49952eccf0b411c0e71f3c32fcc4c9f 100644 (file)
@@ -87,7 +87,7 @@ static int tls_close(URLContext *h)
 {
     TLSContext *c = h->priv_data;
     if (c->need_shutdown)
-        gnutls_bye(c->session, GNUTLS_SHUT_RDWR);
+        gnutls_bye(c->session, GNUTLS_SHUT_WR);
     if (c->session)
         gnutls_deinit(c->session);
     if (c->cred)
@@ -243,7 +243,7 @@ static const AVClass tls_class = {
     .version    = LIBAVUTIL_VERSION_INT,
 };
 
-URLProtocol ff_tls_gnutls_protocol = {
+const URLProtocol ff_tls_gnutls_protocol = {
     .name           = "tls",
     .url_open2      = tls_open,
     .url_read       = tls_read,