avformat: Add a protocol blacklisting API
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
This commit is contained in:
@@ -119,7 +119,7 @@ static int parse_playlist(URLContext *h, const char *url)
|
||||
|
||||
if ((ret = ffio_open_whitelist(&in, url, AVIO_FLAG_READ,
|
||||
&h->interrupt_callback, NULL,
|
||||
h->protocol_whitelist)) < 0)
|
||||
h->protocol_whitelist, h->protocol_blacklist)) < 0)
|
||||
return ret;
|
||||
|
||||
read_chomp_line(in, line, sizeof(line));
|
||||
@@ -307,7 +307,7 @@ retry:
|
||||
av_log(h, AV_LOG_DEBUG, "opening %s\n", url);
|
||||
ret = ffurl_open_whitelist(&s->seg_hd, url, AVIO_FLAG_READ,
|
||||
&h->interrupt_callback, NULL,
|
||||
h->protocol_whitelist);
|
||||
h->protocol_whitelist, h->protocol_blacklist);
|
||||
if (ret < 0) {
|
||||
if (ff_check_interrupt(&h->interrupt_callback))
|
||||
return AVERROR_EXIT;
|
||||
|
||||
Reference in New Issue
Block a user