lavf: reorganize URLProtocols
authorAnton Khirnov <anton@khirnov.net>
Fri, 19 Feb 2016 09:39:29 +0000 (10:39 +0100)
committerAnton Khirnov <anton@khirnov.net>
Mon, 22 Feb 2016 10:30:58 +0000 (11:30 +0100)
commit2758cdedfb7ac61f8b5e4861f99218b6fd43491d
tree7280b43fe38dff1db077ffd8ebfeabbb850718d4
parent225e84e74544062706c0159ec0737b0e1d40915f
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.
28 files changed:
configure
libavformat/Makefile
libavformat/allformats.c
libavformat/avio.c
libavformat/concat.c
libavformat/crypto.c
libavformat/file.c
libavformat/gopher.c
libavformat/hlsproto.c
libavformat/http.c
libavformat/icecast.c
libavformat/librtmp.c
libavformat/md5proto.c
libavformat/mmsh.c
libavformat/mmst.c
libavformat/protocols.c [new file with mode: 0644]
libavformat/rtmpcrypt.c
libavformat/rtmphttp.c
libavformat/rtmpproto.c
libavformat/rtpproto.c
libavformat/sctp.c
libavformat/srtpproto.c
libavformat/tcp.c
libavformat/tls_gnutls.c
libavformat/tls_openssl.c
libavformat/udp.c
libavformat/unix.c
libavformat/url.h