[FFmpeg-cvslog] r24581 - trunk/cmdutils.c

stefano subversion
Fri Jul 30 00:38:28 CEST 2010


Author: stefano
Date: Fri Jul 30 00:38:28 2010
New Revision: 24581

Log:
Extend show_protocol() to make it print more information.

Modified:
   trunk/cmdutils.c

Modified: trunk/cmdutils.c
==============================================================================
--- trunk/cmdutils.c	Fri Jul 30 00:19:54 2010	(r24580)
+++ trunk/cmdutils.c	Fri Jul 30 00:38:28 2010	(r24581)
@@ -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)



More information about the ffmpeg-cvslog mailing list