[PATCH 2/2] Extend show_protocol() to make it print more information.
Stefano Sabatini
stefano.sabatini-lala
Thu Jul 29 10:38:51 CEST 2010
---
cmdutils.c | 13 +++++++++++--
1 files changed, 11 insertions(+), 2 deletions(-)
diff --git a/cmdutils.c b/cmdutils.c
index 978b73c..a79c38e 100644
--- a/cmdutils.c
+++ b/cmdutils.c
@@ -580,9 +580,18 @@ void show_protocols(void)
{
URLProtocol *up=NULL;
- printf("Supported file protocols:\n");
+ 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("%s\n", up->name);
+ printf("%c%c%c %s\n",
+ up->url_read ? 'I' : '.',
+ up->url_write ? 'O' : '.',
+ up->url_seek ? 'S' : '.',
+ up->name);
}
void show_filters(void)
--
1.7.0.4
--cvVnyQ+4j833TQvp
Content-Type: text/x-diff; charset=us-ascii
Content-Disposition: attachment; filename="0001-Add-protocols.texi.patch"
More information about the ffmpeg-devel
mailing list