From 1500ec16c5b28990a58de19ffd5cc17b8a43c806 Mon Sep 17 00:00:00 2001 From: arpi Date: Thu, 5 Dec 2002 00:18:56 +0000 Subject: With this patch the text 'Sub position: x/100' is displayed every time you move the subtitles with R and T keys (sub_pos). I find it useful since sometimes when you hold down R and T you have no idea if anything is happening or where the subs are going to show next. patch by Oskar Liljeblad (oskar@osk.mine.nu) git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8367 b3059339-0415-0410-9bf9-f77b7e298cf2 --- mplayer.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/mplayer.c b/mplayer.c index 744a33da62..238c078f88 100644 --- a/mplayer.c +++ b/mplayer.c @@ -559,6 +559,7 @@ int osd_function=OSD_PLAY; int osd_last_pts=-303; int osd_show_av_delay = 0; int osd_show_sub_delay = 0; +int osd_show_sub_pos = 0; int osd_show_sub_visibility = 0; int osd_show_vobsub_changed = 0; @@ -2328,6 +2329,7 @@ if (stream->type==STREAMTYPE_DVDNAV && dvd_nav_still) if(sub_pos >100) sub_pos=100; if(sub_pos <0) sub_pos=0; vo_osd_changed(OSDTYPE_SUBTITLE); + osd_show_sub_pos = 9; } break; case MP_CMD_SUB_VISIBILITY: { @@ -2739,6 +2741,10 @@ if(rel_seek_secs || abs_seek_pos){ sprintf(osd_text_tmp, "Sub delay: %d ms",(int)(sub_delay*1000)); osd_show_sub_delay--; } else + if (osd_show_sub_pos) { + sprintf(osd_text_tmp, "Sub position: %d/100", sub_pos); + osd_show_sub_pos--; + } else if (osd_show_av_delay) { sprintf(osd_text_tmp, "A-V delay: %d ms",(int)(audio_delay*1000)); osd_show_av_delay--; -- cgit v1.2.3