summaryrefslogtreecommitdiff
path: root/libavformat/avio.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2011-04-04 20:35:04 +0200
committerAnton Khirnov <anton@khirnov.net>2011-04-07 18:11:24 +0200
commit8e76a19b63a3fa322a64a7d27bd6e642c7fe7f85 (patch)
tree90c4c12b1ec0271cc9cb08e339859443e0f37e45 /libavformat/avio.c
parent80c6e238b0f42a0b07fbc195564a50032b3608ba (diff)
avio: make av_register_protocol2 internal.
Diffstat (limited to 'libavformat/avio.c')
-rw-r--r--libavformat/avio.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/libavformat/avio.c b/libavformat/avio.c
index bacf9f35cd..1d40da67ee 100644
--- a/libavformat/avio.c
+++ b/libavformat/avio.c
@@ -57,7 +57,7 @@ URLProtocol *av_protocol_next(URLProtocol *p)
else return first_protocol;
}
-int av_register_protocol2(URLProtocol *protocol, int size)
+int ffurl_register_protocol(URLProtocol *protocol, int size)
{
URLProtocol **p;
if (size < sizeof(URLProtocol)) {
@@ -86,12 +86,12 @@ struct URLProtocol_compat {
int av_register_protocol(URLProtocol *protocol)
{
- return av_register_protocol2(protocol, sizeof(struct URLProtocol_compat));
+ return ffurl_register_protocol(protocol, sizeof(struct URLProtocol_compat));
}
int register_protocol(URLProtocol *protocol)
{
- return av_register_protocol2(protocol, sizeof(struct URLProtocol_compat));
+ return ffurl_register_protocol(protocol, sizeof(struct URLProtocol_compat));
}
#endif
@@ -220,6 +220,10 @@ void url_set_interrupt_cb(URLInterruptCB *interrupt_cb)
{
avio_set_interrupt_cb(interrupt_cb);
}
+int av_register_protocol2(URLProtocol *protocol, int size)
+{
+ return ffurl_register_protocol(protocol, size);
+}
#endif
#define URL_SCHEME_CHARS \