summaryrefslogtreecommitdiffstats
path: root/mplayer.c
diff options
context:
space:
mode:
authorarpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-12-05 00:18:56 +0000
committerarpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-12-05 00:18:56 +0000
commit1500ec16c5b28990a58de19ffd5cc17b8a43c806 (patch)
treec01c0795a5086ba906f9da4e987f6fe8fa83d049 /mplayer.c
parent05802842c9d8f1d3ff5296c1d5962f24f3ee5807 (diff)
downloadmpv-1500ec16c5b28990a58de19ffd5cc17b8a43c806.tar.bz2
mpv-1500ec16c5b28990a58de19ffd5cc17b8a43c806.tar.xz
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
Diffstat (limited to 'mplayer.c')
-rw-r--r--mplayer.c6
1 files changed, 6 insertions, 0 deletions
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--;