]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/tls_libtls.c
libavcodec/jpeg2000dec.c Fixed WRITE_FRAME and tile co-ordinates:
[ffmpeg] / libavformat / tls_libtls.c
index 1321f79229f8f6f336baf07a0d02e29e5f975009..dff7f2d9fb47530f1511d231c5dbd331a1fb2001 100644 (file)
@@ -44,8 +44,7 @@ static int ff_tls_close(URLContext *h)
         tls_close(p->ctx);
         tls_free(p->ctx);
     }
-    if (p->tls_shared.tcp)
-        ffurl_close(p->tls_shared.tcp);
+    ffurl_closep(&p->tls_shared.tcp);
     return 0;
 }
 
@@ -119,7 +118,7 @@ static int ff_tls_open(URLContext *h, const char *uri, int flags, AVDictionary *
 
     if (!c->listen) {
         ret = tls_connect_cbs(p->ctx, tls_read_callback, tls_write_callback,
-            c->tcp, !c->numerichost ? c->host : NULL);
+            c->tcp, c->host);
     } else {
         struct tls *ctx_new;
         ret = tls_accept_cbs(p->ctx, &ctx_new, tls_read_callback,