[FFmpeg-cvslog] r25267 - trunk/libavformat/avio.c

stefano subversion
Thu Sep 30 12:51:22 CEST 2010


Author: stefano
Date: Thu Sep 30 12:51:22 2010
New Revision: 25267

Log:
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)

Modified:
   trunk/libavformat/avio.c

Modified: trunk/libavformat/avio.c
==============================================================================
--- trunk/libavformat/avio.c	Thu Sep 30 01:06:51 2010	(r25266)
+++ trunk/libavformat/avio.c	Thu Sep 30 12:51:22 2010	(r25267)
@@ -90,7 +90,7 @@ int av_register_protocol(URLProtocol *pr
 
 int register_protocol(URLProtocol *protocol)
 {
-    return av_register_protocol(protocol);
+    return av_register_protocol2(protocol, sizeof(struct URLProtocol_compat));
 }
 #endif
 



More information about the ffmpeg-cvslog mailing list