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
This commit is contained in:
Stefano Sabatini 2010-09-30 10:51:22 +00:00
parent 0093ebc20a
commit 0a216bd1dd
1 changed files with 1 additions and 1 deletions

View File

@ -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