Mercurial > mplayer.hg
changeset 2436:18c12656c816
-sstep patch by Aleksander V. Dyomin <fly@shax.ru>
author | arpi |
---|---|
date | Tue, 23 Oct 2001 20:15:00 +0000 |
parents | ee81502bbc4a |
children | de434f02dee6 |
files | cfg-mplayer.h mplayer.c |
diffstat | 2 files changed, 8 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/cfg-mplayer.h Tue Oct 23 18:32:55 2001 +0000 +++ b/cfg-mplayer.h Tue Oct 23 20:15:00 2001 +0000 @@ -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},
--- a/mplayer.c Tue Oct 23 18:32:55 2001 +0000 +++ b/mplayer.c Tue Oct 23 20:15:00 2001 +0000 @@ -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 ====================