[Mplayer-cvslog] CVS: main mplayer.c,1.565,1.566
Arpi of Ize
arpi at mplayerhq.hu
Fri Sep 20 20:39:11 CEST 2002
Update of /cvsroot/mplayer/main
In directory mail:/var/tmp.root/cvs-serv31664
Modified Files:
mplayer.c
Log Message:
This tiny patch adds "type=2" absolute seconds seek capability.
patch by Sidik Isani <lksi at cfht.hawaii.edu>
Index: mplayer.c
===================================================================
RCS file: /cvsroot/mplayer/main/mplayer.c,v
retrieving revision 1.565
retrieving revision 1.566
diff -u -r1.565 -r1.566
--- mplayer.c 16 Sep 2002 16:53:25 -0000 1.565
+++ mplayer.c 20 Sep 2002 18:39:08 -0000 1.566
@@ -1949,7 +1949,13 @@
int v,abs;
v = cmd->args[0].v.i;
abs = (cmd->nargs > 1) ? cmd->args[1].v.i : 0;
- if(abs) {
+ if(abs==2) { /* Absolute seek to a specific timestamp in seconds */
+ abs_seek_pos = 1;
+ if(sh_video)
+ osd_function= (v > sh_video->timer) ? OSD_FFW : OSD_REW;
+ rel_seek_secs = v;
+ }
+ else if(abs) { /* Absolute seek by percentage */
abs_seek_pos = 3;
if(sh_video)
osd_function= (v > sh_video->timer) ? OSD_FFW : OSD_REW;
More information about the MPlayer-cvslog
mailing list