diff options
author | arpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-09-20 18:39:09 +0000 |
---|---|---|
committer | arpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-09-20 18:39:09 +0000 |
commit | a000194a10272f9215afdcec386b70363868dc4e (patch) | |
tree | c9f7d2b2f0227ea1860f259572dab9b72bc8aa35 | |
parent | 8680f58f89802303bace6f20bce35aba2e8b78ec (diff) | |
download | mpv-a000194a10272f9215afdcec386b70363868dc4e.tar.bz2 mpv-a000194a10272f9215afdcec386b70363868dc4e.tar.xz |
This tiny patch adds "type=2" absolute seconds seek capability.
patch by Sidik Isani <lksi@cfht.hawaii.edu>
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7451 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r-- | DOCS/mplayer.1 | 3 | ||||
-rw-r--r-- | mplayer.c | 8 |
2 files changed, 9 insertions, 2 deletions
diff --git a/DOCS/mplayer.1 b/DOCS/mplayer.1 index 8e3dff8caa..2aada5ad69 100644 --- a/DOCS/mplayer.1 +++ b/DOCS/mplayer.1 @@ -2075,9 +2075,10 @@ otherwise one of the following tokens: .TP .B Commands .RSs -.IPs "seek <value> [type=<0/1>]" +.IPs "seek <value> [type=<0/1/2>]" Seek to some place in the movie. Type 0 is a relative seek of +/- <value> seconds. Type 1 seek to <value> % in the movie. +Type 2 is a seek to an absolute position of <value> seconds. .IPs "audio_delay <value>" Adjust the audio delay of value seconds .IPs quit @@ -1949,7 +1949,13 @@ if (stream->type==STREAMTYPE_DVDNAV && dvd_nav_still) int v,abs; v = cmd->args[0].v.i; abs = (cmd->nargs > 1) ? cmd->args[1].v.i : 0; - if(abs) { + if(abs==2) { /* Absolute seek to a specific timestamp in seconds */ + abs_seek_pos = 1; + if(sh_video) + osd_function= (v > sh_video->timer) ? OSD_FFW : OSD_REW; + rel_seek_secs = v; + } + else if(abs) { /* Absolute seek by percentage */ abs_seek_pos = 3; if(sh_video) osd_function= (v > sh_video->timer) ? OSD_FFW : OSD_REW; |