[Mplayer-cvslog] CVS: main mplayer.c,1.353,1.354

Arpi of Ize arpi at mplayer.dev.hu
Thu Dec 27 01:59:43 CET 2001


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

Modified Files:
	mplayer.c 
Log Message:
show a-v delay in osd (based on subdelay osd patch)

Index: mplayer.c
===================================================================
RCS file: /cvsroot/mplayer/main/mplayer.c,v
retrieving revision 1.353
retrieving revision 1.354
diff -u -r1.353 -r1.354
--- mplayer.c	26 Dec 2001 00:16:59 -0000	1.353
+++ mplayer.c	27 Dec 2001 00:59:40 -0000	1.354
@@ -423,6 +423,7 @@
 int osd_visible=100;
 int osd_function=OSD_PLAY;
 int osd_last_pts=-303;
+int osd_show_av_delay = 0;
 int osd_show_sub_delay = 0;
 
 int v_bright=50;
@@ -1874,10 +1875,12 @@
     // delay correction:
     case '+':
       audio_delay+=0.1;  // increase audio buffer delay
+      osd_show_av_delay = 9; // show the A-V delay in OSD
       if(sh_audio) sh_audio->timer-=0.1;
       break;
     case '-':
       audio_delay-=0.1;  // decrease audio buffer delay
+      osd_show_av_delay = 9; // show the A-V delay in OSD
       if(sh_audio) sh_audio->timer+=0.1;
       break;
     // quit
@@ -2179,6 +2182,10 @@
       if (osd_show_sub_delay) {
 	  sprintf(vo_osd_text, "Sub delay: %d ms",(int)(sub_delay*1000));
 	  osd_show_sub_delay--;
+      } else
+      if (osd_show_av_delay) {
+	  sprintf(vo_osd_text, "A-V delay: %d ms",(int)(audio_delay*1000));
+	  osd_show_av_delay--;
       } else
           sprintf(vo_osd_text,"%c %02d:%02d:%02d",osd_function,pts/3600,(pts/60)%60,pts%60);
   } else {




More information about the MPlayer-cvslog mailing list