1
mirror of https://github.com/mpv-player/mpv synced 2024-09-09 01:16:56 +02:00

dusplay sub_delay patch by Evgeny Chukreev <codedj@echo.ru>

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@3235 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
arpi 2001-11-30 23:44:04 +00:00
parent bb11c3711a
commit 9b27b3eb40

View File

@ -419,6 +419,7 @@ int out_fmt=0;
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 @@ if(step_sec>0) {
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 @@ if(rel_seek_secs || abs_seek_pos){
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;
}