Mercurial > libavformat.hg
diff avio.c @ 4488:724c0f6a52dc libavformat
Rename register_protocol() to av_register_protocol() and deprecate
register_protocol().
author | stefano |
---|---|
date | Sun, 15 Feb 2009 14:25:23 +0000 |
parents | 4d5d9ac28e21 |
children | b34d9614b887 |
line wrap: on
line diff
--- a/avio.c Sun Feb 15 14:13:28 2009 +0000 +++ b/avio.c Sun Feb 15 14:25:23 2009 +0000 @@ -50,7 +50,7 @@ else return first_protocol; } -int register_protocol(URLProtocol *protocol) +int av_register_protocol(URLProtocol *protocol) { URLProtocol **p; p = &first_protocol; @@ -60,6 +60,13 @@ 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) {