diff options
author | Anton Khirnov <anton@khirnov.net> | 2016-02-19 18:02:45 +0100 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2016-02-22 11:45:31 +0100 |
commit | 8c0ceafb0f25da077ff23e394667119f031574fd (patch) | |
tree | c495ca2679de2d9c0bc436652cfb5764cee47905 /libavformat/http.c | |
parent | cae448cfbf31d492cba782bc64fc4eed556ed83d (diff) | |
download | ffmpeg-8c0ceafb0f25da077ff23e394667119f031574fd.tar.gz |
urlprotocol: receive a list of protocols from the caller
This way, the decisions about which protocols are available for use in
any given situations can be delegated to the caller.
Diffstat (limited to 'libavformat/http.c')
-rw-r--r-- | libavformat/http.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/http.c b/libavformat/http.c index 6886e151a1..48303908b5 100644 --- a/libavformat/http.c +++ b/libavformat/http.c @@ -181,7 +181,7 @@ static int http_open_cnx_internal(URLContext *h, AVDictionary **options) if (!s->hd) { err = ffurl_open(&s->hd, buf, AVIO_FLAG_READ_WRITE, - &h->interrupt_callback, options); + &h->interrupt_callback, options, h->protocols); if (err < 0) return err; } @@ -1079,7 +1079,7 @@ static int http_proxy_open(URLContext *h, const char *uri, int flags) NULL); redo: ret = ffurl_open(&s->hd, lower_url, AVIO_FLAG_READ_WRITE, - &h->interrupt_callback, NULL); + &h->interrupt_callback, NULL, h->protocols); if (ret < 0) return ret; |