changeset 1984:34e1fa21df2f

-av/-vc help display status
author arpi
date Thu, 27 Sep 2001 13:19:46 +0000
parents 72f0648df475
children bc7eb13d3f57
files codec-cfg.c
diffstat 1 files changed, 11 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/codec-cfg.c	Thu Sep 27 12:59:35 2001 +0000
+++ b/codec-cfg.c	Thu Sep 27 13:19:46 2001 +0000
@@ -651,16 +651,25 @@
 		if (audioflag) {
 			i = nr_acodecs;
 			c = audio_codecs;
+			printf("ac:      afm: status:   info:  [lib/dll]\n");
 		} else {
 			i = nr_vcodecs;
 			c = video_codecs;
+			printf("vc:      vfm: status:   info:  [lib/dll]\n");
 		}
 		if(!i) return NULL;
 		for (/* NOTHING */; i--; c++) {
+			char* s="unknown ";
+			switch(c->status){
+			  case CODECS_STATUS_WORKING:     s="working ";break;
+			  case CODECS_STATUS_PROBLEMS:    s="problems";break;
+			  case CODECS_STATUS_NOT_WORKING: s="crashing";break;
+			  case CODECS_STATUS_UNTESTED:    s="untested";break;
+			}
 			if(c->dll)
-			  printf("%-10s %2d  %s  [%s]\n",c->name,c->driver,c->info,c->dll);
+			  printf("%-10s%2d  %s  %s  [%s]\n",c->name,c->driver,s,c->info,c->dll);
 			else
-			  printf("%-10s %2d  %s\n",c->name,c->driver,c->info);
+			  printf("%-10s%2d  %s  %s\n",c->name,c->driver,s,c->info);
 			
 		}