From 2758cdedfb7ac61f8b5e4861f99218b6fd43491d Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Fri, 19 Feb 2016 10:39:29 +0100 Subject: lavf: reorganize URLProtocols Instead of a linked list constructed at av_register_all(), store them in a constant array of pointers. Since no registration is necessary now, this removes some global state from lavf. This will also allow the urlprotocol layer caller to limit the available protocols in a simple and flexible way in the following commits. --- libavformat/srtpproto.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavformat/srtpproto.c') diff --git a/libavformat/srtpproto.c b/libavformat/srtpproto.c index 1f818d78b4..4dcbad3aaa 100644 --- a/libavformat/srtpproto.c +++ b/libavformat/srtpproto.c @@ -131,7 +131,7 @@ static int srtp_get_multi_file_handle(URLContext *h, int **handles, return ffurl_get_multi_file_handle(s->rtp_hd, handles, numhandles); } -URLProtocol ff_srtp_protocol = { +const URLProtocol ff_srtp_protocol = { .name = "srtp", .url_open = srtp_open, .url_read = srtp_read, -- cgit v1.2.3