X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavformat%2Fgopher.c;h=d1113e74e923515d2e40c72a9a0cb8e056021213;hb=8a6cc30b04287adf30ef24a27362fa3d0275f02c;hp=835ad7f9c14fb9eabf0123bc2aa519e1dee6df90;hpb=1466379059201662c9f5685d51ea316447fbb113;p=ffmpeg diff --git a/libavformat/gopher.c b/libavformat/gopher.c index 835ad7f9c14..d1113e74e92 100644 --- a/libavformat/gopher.c +++ b/libavformat/gopher.c @@ -94,7 +94,7 @@ static int gopher_open(URLContext *h, const char *uri, int flags) s->hd = NULL; err = ffurl_open_whitelist(&s->hd, buf, AVIO_FLAG_READ_WRITE, - &h->interrupt_callback, NULL, h->protocol_whitelist); + &h->interrupt_callback, NULL, h->protocol_whitelist, h->protocol_blacklist); if (err < 0) goto fail; @@ -114,7 +114,7 @@ static int gopher_read(URLContext *h, uint8_t *buf, int size) } -URLProtocol ff_gopher_protocol = { +const URLProtocol ff_gopher_protocol = { .name = "gopher", .url_open = gopher_open, .url_read = gopher_read,