X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavformat%2Ftls_openssl.c;h=3d9768a805826d5c0285a48ab9b7b13cf2441438;hb=9bbdf5d921ef57e1698f64981e4ea04db7c56fb5;hp=178ca9e0e4684402cbcadfa5ab10136aceec4f76;hpb=e122a725fbe9bc5c1bb6047d6be8e0f504d660b9;p=ffmpeg diff --git a/libavformat/tls_openssl.c b/libavformat/tls_openssl.c index 178ca9e0e46..3d9768a8058 100644 --- a/libavformat/tls_openssl.c +++ b/libavformat/tls_openssl.c @@ -325,6 +325,12 @@ static int tls_write(URLContext *h, const uint8_t *buf, int size) return print_tls_error(h, ret); } +static int tls_get_file_handle(URLContext *h) +{ + TLSContext *c = h->priv_data; + return ffurl_get_file_handle(c->tls_shared.tcp); +} + static const AVOption options[] = { TLS_COMMON_OPTIONS(TLSContext, tls_shared), { NULL } @@ -343,6 +349,7 @@ const URLProtocol ff_tls_openssl_protocol = { .url_read = tls_read, .url_write = tls_write, .url_close = tls_close, + .url_get_file_handle = tls_get_file_handle, .priv_data_size = sizeof(TLSContext), .flags = URL_PROTOCOL_FLAG_NETWORK, .priv_data_class = &tls_class,