From 682288117ea901749ebdff0deb1c98abb4825e98 Mon Sep 17 00:00:00 2001 From: arpi Date: Tue, 19 Mar 2002 19:22:00 +0000 Subject: [PATCH] show sub/av delay at osdlevel=1 - patch by Marcin Juszkiewicz git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@5206 b3059339-0415-0410-9bf9-f77b7e298cf2 --- mplayer.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/mplayer.c b/mplayer.c index d21bd6df5f..084f028196 100644 --- a/mplayer.c +++ b/mplayer.c @@ -2568,7 +2568,7 @@ if(rel_seek_secs || abs_seek_pos){ //================= 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(rel_seek_secs || abs_seek_pos){ 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);