Mercurial > mplayer.hg
changeset 1237:53b23aee5aa7
Added some nice vo/ao info.
author | atmos4 |
---|---|
date | Wed, 27 Jun 2001 11:39:17 +0000 |
parents | ebe9659da559 |
children | e7d98f8f9459 |
files | mplayer.c |
diffstat | 1 files changed, 22 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mplayer.c Wed Jun 27 08:50:03 2001 +0000 +++ b/mplayer.c Wed Jun 27 11:39:17 2001 +0000 @@ -1,4 +1,4 @@ -// AVI & MPEG Player v0.11 (C) 2000-2001. by A'rpi/ESP-team +// AVI & MPEG Player v0.18 (C) 2000-2001. by A'rpi/ESP-team #include <stdio.h> #include <stdlib.h> @@ -1361,6 +1361,13 @@ (flip==1)?"flip ":"" // fullscreen|(vidmode<<1)|(softzoom<<2)|(flip<<3) ); + printf("VO: Description: %s\n" + "VO: Author: %s\n", + info->name, + info->author + ); + if(strlen(info->comment) > 0) + printf("VO: Comment: %s\n", info->comment); } // if(verbose) printf("Destination size: %d x %d out_fmt=%0X\n", @@ -1455,6 +1462,20 @@ current_module="setup_audio"; if(has_audio){ + + const ao_info_t *info=audio_out->info; + printf("AO: [%s] %iHz %s %s\n" + "AO: Description: %s\n" + "AO: Author: %s\n", + info->short_name, + force_srate?force_srate:sh_audio->samplerate, + sh_audio->channels>1?"Stereo":"Mono", + audio_out_format_name(sh_audio->sample_format), + info->name, + info->author + ); + if(strlen(info->comment) > 0) + printf("AO: Comment: %s\n", info->comment); if(!audio_out->init(force_srate?force_srate:sh_audio->samplerate, sh_audio->channels,sh_audio->sample_format,0)){