Commit 0a216bd1 authored by Stefano Sabatini's avatar Stefano Sabatini

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
parent 0093ebc2
...@@ -90,7 +90,7 @@ int av_register_protocol(URLProtocol *protocol) ...@@ -90,7 +90,7 @@ int av_register_protocol(URLProtocol *protocol)
int register_protocol(URLProtocol *protocol) int register_protocol(URLProtocol *protocol)
{ {
return av_register_protocol(protocol); return av_register_protocol2(protocol, sizeof(struct URLProtocol_compat));
} }
#endif #endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment