aboutsummaryrefslogtreecommitdiffstats
path: root/cmdutils.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2011-04-04 20:28:58 +0200
committerAnton Khirnov <anton@khirnov.net>2011-04-08 17:48:53 +0200
commitcdc6a87f193b1bf99a640a44374d4f2597118959 (patch)
tree60d614de8ade821d48e9218134e614b7111dc763 /cmdutils.c
parentf8270bbf8ce891cc614a5562c02ce18a50a89f1d (diff)
downloadffmpeg-cdc6a87f193b1bf99a640a44374d4f2597118959.tar.gz
avio: deprecate av_protocol_next().
Diffstat (limited to 'cmdutils.c')
-rw-r--r--cmdutils.c20
1 files changed, 8 insertions, 12 deletions
diff --git a/cmdutils.c b/cmdutils.c
index 6901f5656b..cc10b48e30 100644
--- a/cmdutils.c
+++ b/cmdutils.c
@@ -653,20 +653,16 @@ void show_bsfs(void)
void show_protocols(void)
{
- URLProtocol *up=NULL;
+ void *opaque = NULL;
+ const char *name;
printf("Supported file protocols:\n"
- "I.. = Input supported\n"
- ".O. = Output supported\n"
- "..S = Seek supported\n"
- "FLAGS NAME\n"
- "----- \n");
- while((up = av_protocol_next(up)))
- printf("%c%c%c %s\n",
- up->url_read ? 'I' : '.',
- up->url_write ? 'O' : '.',
- up->url_seek ? 'S' : '.',
- up->name);
+ "Input:\n");
+ while ((name = avio_enum_protocols(&opaque, 0)))
+ printf("%s\n", name);
+ printf("Output:\n");
+ while ((name = avio_enum_protocols(&opaque, 1)))
+ printf("%s\n", name);
}
void show_filters(void)