From 0fa00d05911aa8043ecad8dead4a73cab7faadf6 Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Fri, 19 Feb 2016 10:49:10 +0100 Subject: lavf: move avio_enum_protocols() to protocols.c It's a more appropriate place for it. --- libavformat/avio.c | 15 --------------- 1 file changed, 15 deletions(-) (limited to 'libavformat/avio.c') diff --git a/libavformat/avio.c b/libavformat/avio.c index 00c111a059..3ead41ae86 100644 --- a/libavformat/avio.c +++ b/libavformat/avio.c @@ -79,21 +79,6 @@ const AVClass ffurl_context_class = { }; /*@}*/ -const char *avio_enum_protocols(void **opaque, int output) -{ - const URLProtocol **p = *opaque; - - p = p ? p + 1 : ff_url_protocols; - *opaque = p; - if (!*p) { - *opaque = NULL; - return NULL; - } - if ((output && (*p)->url_write) || (!output && (*p)->url_read)) - return (*p)->name; - return avio_enum_protocols(opaque, output); -} - static int url_alloc_for_protocol(URLContext **puc, const URLProtocol *up, const char *filename, int flags, const AVIOInterruptCB *int_cb) -- cgit v1.2.3