X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavformat%2Frtmpproto.c;h=c01bc40204a8ea8564ffb1696ad69fd599d4c433;hb=50f4b64c543de39b74e56ea32ecfbdcf194c217a;hp=a5485ab9e81e7f59c3806e3c01c467a4eefaa488;hpb=f6d633d72686e89503dcdf0709e8d4da59ffca0b;p=ffmpeg diff --git a/libavformat/rtmpproto.c b/libavformat/rtmpproto.c index a5485ab9e81..c01bc40204a 100644 --- a/libavformat/rtmpproto.c +++ b/libavformat/rtmpproto.c @@ -1120,7 +1120,7 @@ static int rtmp_calc_swfhash(URLContext *s) /* Get the SWF player file. */ if ((ret = ffurl_open_whitelist(&stream, rt->swfverify, AVIO_FLAG_READ, &s->interrupt_callback, NULL, - s->protocol_whitelist)) < 0) { + s->protocol_whitelist, s->protocol_blacklist)) < 0) { av_log(s, AV_LOG_ERROR, "Cannot open connection %s.\n", rt->swfverify); goto fail; } @@ -2650,7 +2650,7 @@ static int rtmp_open(URLContext *s, const char *uri, int flags) reconnect: if ((ret = ffurl_open_whitelist(&rt->stream, buf, AVIO_FLAG_READ_WRITE, &s->interrupt_callback, &opts, - s->protocol_whitelist)) < 0) { + s->protocol_whitelist, s->protocol_blacklist)) < 0) { av_log(s , AV_LOG_ERROR, "Cannot open connection %s\n", buf); goto fail; } @@ -3110,7 +3110,7 @@ static const AVClass flavor##_class = { \ .version = LIBAVUTIL_VERSION_INT, \ }; \ \ -URLProtocol ff_##flavor##_protocol = { \ +const URLProtocol ff_##flavor##_protocol = { \ .name = #flavor, \ .url_open = rtmp_open, \ .url_read = rtmp_read, \