[Mplayer-cvslog] CVS: main cfg-mplayer.h,1.94,1.95 mplayer.c,1.301,1.302

Arpi of Ize arpi at mplayer.dev.hu
Tue Oct 23 21:47:02 CEST 2001


Update of /cvsroot/mplayer/main
In directory mplayer:/var/tmp.root/cvs-serv4225

Modified Files:
	cfg-mplayer.h mplayer.c 
Log Message:
-sskip added

Index: cfg-mplayer.h
===================================================================
RCS file: /cvsroot/mplayer/main/cfg-mplayer.h,v
retrieving revision 1.94
retrieving revision 1.95
diff -u -r1.94 -r1.95
--- cfg-mplayer.h	23 Oct 2001 16:53:48 -0000	1.94
+++ cfg-mplayer.h	23 Oct 2001 19:46:38 -0000	1.95
@@ -153,6 +153,7 @@
 	{"nobg", &play_in_bg, CONF_TYPE_FLAG, 0, 1, 0},
 	{"sb", &seek_to_byte, CONF_TYPE_INT, CONF_MIN, 0, 0},
 	{"ss", &seek_to_sec, CONF_TYPE_STRING, CONF_MIN, 0, 0},
+	{"sstep", &step_sec, CONF_TYPE_INT, CONF_MIN, 0, 0},
 	{"loop", &loop_times, CONF_TYPE_INT, CONF_RANGE, -1, 10000},
 	{"sound", &has_audio, CONF_TYPE_FLAG, 0, 0, 1},
 	{"nosound", &has_audio, CONF_TYPE_FLAG, 0, 1, 0},

Index: mplayer.c
===================================================================
RCS file: /cvsroot/mplayer/main/mplayer.c,v
retrieving revision 1.301
retrieving revision 1.302
diff -u -r1.301 -r1.302
--- mplayer.c	22 Oct 2001 14:42:47 -0000	1.301
+++ mplayer.c	23 Oct 2001 19:46:38 -0000	1.302
@@ -185,6 +185,7 @@
 int osd_level=2;
 char *seek_to_sec=NULL;
 off_t seek_to_byte=0;
+off_t step_sec=0;
 int has_audio=1;
 int loop_times=-1;
 
@@ -1656,6 +1657,12 @@
     if(!force_redraw) break;
   } //  while(sh_video->timer<sh_audio->timer || force_redraw)
 
+// skip some seconds... added by fly
+
+if(step_sec>0) {
+	osd_function=OSD_FFW;
+	rel_seek_secs+=step_sec;
+}
 
 //================= Keyboard events, SEEKing ====================
 




More information about the MPlayer-cvslog mailing list