[Mplayer-cvslog] CVS: main mplayer.c,1.623,1.624
Arpi of Ize
arpi at mplayerhq.hu
Thu Dec 5 01:18:59 CET 2002
- Previous message: [Mplayer-cvslog] CVS: main find_sub.c,1.8,1.9 mplayer.c,1.622,1.623 subreader.h,1.20,1.21
- Next message: [Mplayer-cvslog] CVS: main/libmpcodecs vf.c,1.62,1.63 vf.h,1.15,1.16 vf_rotate.c,1.4,1.5
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/mplayer/main
In directory mail:/var/tmp.root/cvs-serv14519
Modified Files:
mplayer.c
Log Message:
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 at osk.mine.nu)
Index: mplayer.c
===================================================================
RCS file: /cvsroot/mplayer/main/mplayer.c,v
retrieving revision 1.623
retrieving revision 1.624
diff -u -r1.623 -r1.624
--- mplayer.c 5 Dec 2002 00:15:56 -0000 1.623
+++ mplayer.c 5 Dec 2002 00:18:56 -0000 1.624
@@ -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:
{
@@ -2738,6 +2740,10 @@
if (osd_show_sub_delay) {
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));
- Previous message: [Mplayer-cvslog] CVS: main find_sub.c,1.8,1.9 mplayer.c,1.622,1.623 subreader.h,1.20,1.21
- Next message: [Mplayer-cvslog] CVS: main/libmpcodecs vf.c,1.62,1.63 vf.h,1.15,1.16 vf_rotate.c,1.4,1.5
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the MPlayer-cvslog
mailing list