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

-sb option re-added (noticed by Alexandre Oliva <oliva@lsd.ic.unicamp.br>)

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@5627 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
arpi 2002-04-15 00:36:21 +00:00
parent b4c20d5607
commit 3370d0d264
4 changed files with 6 additions and 5 deletions

View File

@ -38,6 +38,9 @@
{"csslib", "MPlayer was compiled WITHOUT libcss support!\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL},
#endif
{"sb", &seek_to_byte, CONF_TYPE_INT, CONF_MIN, 0, 0, NULL},
{"ss", &seek_to_sec, CONF_TYPE_STRING, CONF_MIN, 0, 0, NULL},
// ------------------------- demuxer options --------------------
{"bps", &pts_from_bps, CONF_TYPE_FLAG, 0, 0, 1, NULL},

View File

@ -76,8 +76,6 @@ static config_t mencoder_opts[]={
/* name, pointer, type, flags, min, max */
{"include", cfg_include, CONF_TYPE_FUNC_PARAM, CONF_NOSAVE, 0, 0, NULL}, /* this must be the first!!! */
// {"sb", &seek_to_byte, CONF_TYPE_INT, CONF_MIN, 0, 0, NULL},
{"ss", &seek_to_sec, CONF_TYPE_STRING, CONF_MIN, 0, 0, NULL},
{"endpos", parse_end_at, CONF_TYPE_FUNC_PARAM, 0, 0, 0, NULL},
{"ofps", &force_ofps, CONF_TYPE_FLOAT, CONF_MIN, 0, 0, NULL},

View File

@ -189,8 +189,6 @@ static config_t mplayer_opts[]={
#endif
// {"bg", &play_in_bg, CONF_TYPE_FLAG, 0, 0, 1, NULL},
// {"nobg", &play_in_bg, CONF_TYPE_FLAG, 0, 1, 0, NULL},
{"sb", &seek_to_byte, CONF_TYPE_INT, CONF_MIN, 0, 0, NULL},
{"ss", &seek_to_sec, CONF_TYPE_STRING, CONF_MIN, 0, 0, NULL},
{"sstep", &step_sec, CONF_TYPE_INT, CONF_MIN, 0, 0, NULL},
{"noloop", &loop_times, CONF_TYPE_FLAG, 0, 0, -1, NULL},
{"loop", &loop_times, CONF_TYPE_INT, CONF_RANGE, -1, 10000, NULL},

View File

@ -382,7 +382,7 @@ if(stream->type==STREAMTYPE_DVD){
}
#endif
if(stream_cache_size) stream_enable_cache(stream,stream_cache_size*1024,0,0);
stream->start_pos+=seek_to_byte;
#ifdef HAVE_LIBCSS
// current_module="libcss";
@ -403,6 +403,8 @@ if(stream->type==STREAMTYPE_DVD){
}
#endif
if(stream_cache_size) stream_enable_cache(stream,stream_cache_size*1024,0,0);
if(!has_audio || demuxer2) audio_id=-2; /* do NOT read audio packets... */
//demuxer=demux_open(stream,file_format,video_id,audio_id,dvdsub_id);