# HG changeset patch # User atmos4 # Date 993641957 0 # Node ID 53b23aee5aa73584d1c6d4ee373584d89d977fda # Parent ebe9659da5596d8b7cb5bc7372cc7aee2766a6de Added some nice vo/ao info. diff -r ebe9659da559 -r 53b23aee5aa7 mplayer.c --- 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 #include @@ -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)){