changeset 8366:3e3b30d16719

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)
author arpi
date Thu, 05 Dec 2002 00:18:56 +0000
parents 423a19edc0a4
children 14af7d96df34
files mplayer.c
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mplayer.c	Thu Dec 05 00:15:56 2002 +0000
+++ b/mplayer.c	Thu Dec 05 00:18:56 2002 +0000
@@ -559,6 +559,7 @@
 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(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 @@
 	  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--;