Commit b9d2d684 authored by Martin Storsjö's avatar Martin Storsjö

tls: Pass AVOptions dictionaries through to the chained protocol

Signed-off-by: 's avatarMartin Storsjö <martin@martin.st>
parent e14f98c6
...@@ -137,7 +137,7 @@ static int do_tls_poll(URLContext *h, int ret) ...@@ -137,7 +137,7 @@ static int do_tls_poll(URLContext *h, int ret)
return 0; return 0;
} }
static int tls_open(URLContext *h, const char *uri, int flags) static int tls_open(URLContext *h, const char *uri, int flags, AVDictionary **options)
{ {
TLSContext *c = h->priv_data; TLSContext *c = h->priv_data;
int ret; int ret;
...@@ -189,7 +189,7 @@ static int tls_open(URLContext *h, const char *uri, int flags) ...@@ -189,7 +189,7 @@ static int tls_open(URLContext *h, const char *uri, int flags)
} }
ret = ffurl_open(&c->tcp, buf, AVIO_FLAG_READ_WRITE, ret = ffurl_open(&c->tcp, buf, AVIO_FLAG_READ_WRITE,
&h->interrupt_callback, NULL); &h->interrupt_callback, options);
if (ret) if (ret)
goto fail; goto fail;
c->fd = ffurl_get_file_handle(c->tcp); c->fd = ffurl_get_file_handle(c->tcp);
...@@ -360,7 +360,7 @@ static int tls_close(URLContext *h) ...@@ -360,7 +360,7 @@ static int tls_close(URLContext *h)
URLProtocol ff_tls_protocol = { URLProtocol ff_tls_protocol = {
.name = "tls", .name = "tls",
.url_open = tls_open, .url_open2 = tls_open,
.url_read = tls_read, .url_read = tls_read,
.url_write = tls_write, .url_write = tls_write,
.url_close = tls_close, .url_close = tls_close,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment