Mercurial > mplayer.hg
changeset 3783:de6b00131e95
show a-v delay in osd (based on subdelay osd patch)
author | arpi |
---|---|
date | Thu, 27 Dec 2001 00:59:40 +0000 |
parents | 3e53c3991170 |
children | 8b7722329a27 |
files | mplayer.c |
diffstat | 1 files changed, 7 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/mplayer.c Thu Dec 27 00:57:32 2001 +0000 +++ b/mplayer.c Thu Dec 27 00:59:40 2001 +0000 @@ -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 @@ -2180,6 +2183,10 @@ 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 { vo_osd_text=NULL;