From 0a216bd1dd6ac32aa91044e54ea15b43e9db7985 Mon Sep 17 00:00:00 2001 From: Stefano Sabatini Date: Thu, 30 Sep 2010 10:51:22 +0000 Subject: [PATCH] =?UTF-8?q?Make=20register=5Fprotocol()=20use=20the=20func?= =?UTF-8?q?tion=20av=5Fregister=5Fprotocol2()=20rather=20than=20av=5Fregis?= =?UTF-8?q?ter=5Fprotocol(),=20which=20is=20deprecated.=20Fix=20the=20GCC?= =?UTF-8?q?=20warning:=20avio.c:=20In=20function=20=E2=80=98register=5Fpro?= =?UTF-8?q?tocol=E2=80=99:=20avio.c:93:=20warning:=20=E2=80=98av=5Fregiste?= =?UTF-8?q?r=5Fprotocol=E2=80=99=20is=20deprecated=20(declared=20at=20avio?= =?UTF-8?q?.c:86)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Originally committed as revision 25267 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavformat/avio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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