mirror of https://github.com/mpv-player/mpv
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
This commit is contained in:
parent
05802842c9
commit
1500ec16c5
|
@ -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--;
|
||||
|
|
Loading…
Reference in New Issue