mirror of
https://github.com/mpv-player/mpv
synced 2025-02-25 17:58:27 +00:00
-av/-vc help display status
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@1985 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
85623cf7b6
commit
5e07305d36
13
codec-cfg.c
13
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);
|
||||
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user