summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorarpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-09-27 13:19:46 +0000
committerarpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-09-27 13:19:46 +0000
commit5e07305d3641f13be84b3ccadfbc856a83f1bb18 (patch)
tree9c54569fe70635f8b894162db841cc6b0c6bb761
parent85623cf7b6df2eb5bf9d7a4c5ce7db309c116e18 (diff)
downloadmpv-5e07305d3641f13be84b3ccadfbc856a83f1bb18.tar.bz2
mpv-5e07305d3641f13be84b3ccadfbc856a83f1bb18.tar.xz
-av/-vc help display status
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@1985 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r--codec-cfg.c13
1 files changed, 11 insertions, 2 deletions
diff --git a/codec-cfg.c b/codec-cfg.c
index 65c9147fe1..3164d228fb 100644
--- a/codec-cfg.c
+++ b/codec-cfg.c
@@ -651,16 +651,25 @@ void list_codecs(int audioflag){
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);
}