summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--cfg-mplayer.h1
-rw-r--r--mplayer.c7
2 files changed, 8 insertions, 0 deletions
diff --git a/cfg-mplayer.h b/cfg-mplayer.h
index b3f0aec1af..3d280bc599 100644
--- a/cfg-mplayer.h
+++ b/cfg-mplayer.h
@@ -153,6 +153,7 @@ struct config conf[]={
{"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},
diff --git a/mplayer.c b/mplayer.c
index 68b77a0a35..3999ce696e 100644
--- a/mplayer.c
+++ b/mplayer.c
@@ -185,6 +185,7 @@ int use_gui=0;
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(auto_quality>0){
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 ====================