1
mirror of https://github.com/mpv-player/mpv synced 2024-07-31 16:29:58 +02:00

-sstep patch by Aleksander V. Dyomin <fly@shax.ru>

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2437 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
arpi 2001-10-23 20:15:00 +00:00
parent 688a1034e7
commit e36bb42c5a
2 changed files with 8 additions and 0 deletions

View File

@ -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},

View File

@ -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 ====================