diff options
author | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2010-09-30 10:51:22 +0000 |
---|---|---|
committer | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2010-09-30 10:51:22 +0000 |
commit | 0a216bd1dd6ac32aa91044e54ea15b43e9db7985 (patch) | |
tree | bfd6da320575d7b7668006bd285bb4e0c1a51d0b /libavformat | |
parent | 0093ebc20aeee6d184aff047d30d93b63186330b (diff) | |
download | ffmpeg-0a216bd1dd6ac32aa91044e54ea15b43e9db7985.tar.gz |
Make register_protocol() use the function av_register_protocol2()
rather than av_register_protocol(), which is deprecated.
Fix the GCC warning:
avio.c: In function ‘register_protocol’:
avio.c:93: warning: ‘av_register_protocol’ is deprecated (declared at avio.c:86)
Originally committed as revision 25267 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/avio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/avio.c b/libavformat/avio.c index bf075d24ae..4399878991 100644 --- a/libavformat/avio.c +++ b/libavformat/avio.c @@ -90,7 +90,7 @@ int av_register_protocol(URLProtocol *protocol) int register_protocol(URLProtocol *protocol) { - return av_register_protocol(protocol); + return av_register_protocol2(protocol, sizeof(struct URLProtocol_compat)); } #endif |