X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavformat%2Fasync.c;h=5a81507ef1688e88657e33d1f65f7b938dbe0e74;hb=f4df5039a791a56de85c64e6b9e4448a221b5c40;hp=cc11ec47a07c5d929013d9306096a50db3a5826e;hpb=6dad42854690f5754a1cf1ed138ebd9813e1af37;p=ffmpeg diff --git a/libavformat/async.c b/libavformat/async.c index cc11ec47a07..5a81507ef16 100644 --- a/libavformat/async.c +++ b/libavformat/async.c @@ -612,7 +612,8 @@ int main(void) /* * test normal read */ - ret = ffurl_open(&h, "async:async-test:", AVIO_FLAG_READ, NULL, NULL); + ret = ffurl_open_whitelist(&h, "async:async-test:", AVIO_FLAG_READ, + NULL, NULL, NULL, NULL, NULL); printf("open: %d\n", ret); size = ffurl_size(h); @@ -688,7 +689,8 @@ int main(void) */ ffurl_close(h); av_dict_set_int(&opts, "async-test-read-error", -10000, 0); - ret = ffurl_open(&h, "async:async-test:", AVIO_FLAG_READ, NULL, &opts); + ret = ffurl_open_whitelist(&h, "async:async-test:", AVIO_FLAG_READ, + NULL, &opts, NULL, NULL, NULL); printf("open: %d\n", ret); ret = ffurl_read(h, buf, 1);