diff options
author | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2009-02-15 14:25:23 +0000 |
---|---|---|
committer | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2009-02-15 14:25:23 +0000 |
commit | 65c40e4e3a4d736632820b1a8e80a5d0c4fb31de (patch) | |
tree | 4e474cb8746e9ebc2864a06af7446d07138d0b62 /libavformat/avio.c | |
parent | 54b4ea57fdffd147eafafda27d3b46692c3a5a79 (diff) | |
download | ffmpeg-65c40e4e3a4d736632820b1a8e80a5d0c4fb31de.tar.gz |
Rename register_protocol() to av_register_protocol() and deprecate
register_protocol().
Originally committed as revision 17322 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/avio.c')
-rw-r--r-- | libavformat/avio.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/libavformat/avio.c b/libavformat/avio.c index 5809c40479..011bc8808b 100644 --- a/libavformat/avio.c +++ b/libavformat/avio.c @@ -50,7 +50,7 @@ URLProtocol *av_protocol_next(URLProtocol *p) else return first_protocol; } -int register_protocol(URLProtocol *protocol) +int av_register_protocol(URLProtocol *protocol) { URLProtocol **p; p = &first_protocol; @@ -60,6 +60,13 @@ int register_protocol(URLProtocol *protocol) return 0; } +#if LIBAVFORMAT_VERSION_MAJOR < 53 +int register_protocol(URLProtocol *protocol) +{ + return av_register_protocol(protocol); +} +#endif + int url_open_protocol (URLContext **puc, struct URLProtocol *up, const char *filename, int flags) { |