[Mplayer-cvslog] CVS: main mplayer.c,1.166,1.167

Atmosfear atmos4 at mplayerhq.banki.hu
Wed Jun 27 13:39:19 CEST 2001


Update of /cvsroot/mplayer/main
In directory mplayerhq:/var/tmp.root/cvs-serv27923

Modified Files:
	mplayer.c 
Log Message:
Added some nice vo/ao info.


Index: mplayer.c
===================================================================
RCS file: /cvsroot/mplayer/main/mplayer.c,v
retrieving revision 1.166
retrieving revision 1.167
diff -C2 -r1.166 -r1.167
*** mplayer.c	24 Jun 2001 00:02:23 -0000	1.166
--- mplayer.c	27 Jun 2001 11:39:17 -0000	1.167
***************
*** 1,3 ****
! // AVI & MPEG Player    v0.11   (C) 2000-2001. by A'rpi/ESP-team
  
  #include <stdio.h>
--- 1,3 ----
! // AVI & MPEG Player    v0.18   (C) 2000-2001. by A'rpi/ESP-team
  
  #include <stdio.h>
***************
*** 1362,1365 ****
--- 1362,1372 ----
  //         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);
     }
  
***************
*** 1456,1459 ****
--- 1463,1480 ----
  
  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,


_______________________________________________
Mplayer-cvslog mailing list
Mplayer-cvslog at lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/mplayer-cvslog



More information about the MPlayer-cvslog mailing list