[Mplayer-cvslog] CVS: main mplayer.c,1.440,1.441

Arpi of Ize arpi at mplayer.dev.hu
Tue Mar 19 20:22:03 CET 2002


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

Modified Files:
	mplayer.c 
Log Message:
show sub/av delay at osdlevel=1 - patch by Marcin Juszkiewicz <marcinj at netbox.pl>

Index: mplayer.c
===================================================================
RCS file: /cvsroot/mplayer/main/mplayer.c,v
retrieving revision 1.440
retrieving revision 1.441
diff -u -r1.440 -r1.441
--- mplayer.c	19 Mar 2002 18:49:39 -0000	1.440
+++ mplayer.c	19 Mar 2002 19:22:00 -0000	1.441
@@ -2568,7 +2568,7 @@
 
 //================= Update OSD ====================
 #ifdef USE_OSD
-  if(osd_level>=2){
+  if(osd_level>=1){
       int pts=d_video->pts;
       char osd_text_tmp[50];
       if(pts==osd_last_pts-1) ++pts; else osd_last_pts=pts;
@@ -2580,8 +2580,9 @@
       if (osd_show_av_delay) {
 	  sprintf(osd_text_tmp, "A-V delay: %d ms",(int)(audio_delay*1000));
 	  osd_show_av_delay--;
-      } else
+      } else if(osd_level>=2)
           sprintf(osd_text_tmp,"%c %02d:%02d:%02d",osd_function,pts/3600,(pts/60)%60,pts%60);
+      else osd_text_tmp[0]=0;
       
       if(strcmp(vo_osd_text, osd_text_tmp)) {
 	      strcpy(vo_osd_text, osd_text_tmp);




More information about the MPlayer-cvslog mailing list