[Mplayer-cvslog] CVS: main mplayer.c,1.330,1.331
Arpi of Ize
arpi at mplayer.dev.hu
Sat Dec 1 00:44:07 CET 2001
Update of /cvsroot/mplayer/main
In directory mplayer:/var/tmp.root/cvs-serv2796
Modified Files:
mplayer.c
Log Message:
dusplay sub_delay patch by Evgeny Chukreev <codedj at echo.ru>
Index: mplayer.c
===================================================================
RCS file: /cvsroot/mplayer/main/mplayer.c,v
retrieving revision 1.330
retrieving revision 1.331
diff -u -r1.330 -r1.331
--- mplayer.c 29 Nov 2001 17:31:57 -0000 1.330
+++ mplayer.c 30 Nov 2001 23:44:04 -0000 1.331
@@ -419,6 +419,7 @@
int osd_visible=100;
int osd_function=OSD_PLAY;
int osd_last_pts=-303;
+int osd_show_sub_delay = 0;
int v_bright=50;
int v_cont=50;
@@ -1757,9 +1758,11 @@
break;
case 'z':
sub_delay -= 0.1;
+ osd_show_sub_delay = 9; // show the subdelay in OSD
break;
case 'x':
sub_delay += 0.1;
+ osd_show_sub_delay = 9; // show the subdelay in OSD
break;
case '9':
case '0':
@@ -2026,7 +2029,11 @@
int pts=d_video->pts;
if(pts==osd_last_pts-1) ++pts; else osd_last_pts=pts;
vo_osd_text=osd_text_buffer;
- sprintf(vo_osd_text,"%c %02d:%02d:%02d",osd_function,pts/3600,(pts/60)%60,pts%60);
+ if (osd_show_sub_delay) {
+ sprintf(vo_osd_text, "Sub delay: %d ms",(int)(sub_delay*1000));
+ osd_show_sub_delay--;
+ } else
+ sprintf(vo_osd_text,"%c %02d:%02d:%02d",osd_function,pts/3600,(pts/60)%60,pts%60);
} else {
vo_osd_text=NULL;
}
More information about the MPlayer-cvslog
mailing list