[PATCH] Seek to a given percent directly

Clément Bœsch ubitux at gmail.com
Mon Nov 8 00:03:21 CET 2010


---
 DOCS/man/en/mplayer.1 |    2 ++
 DOCS/man/fr/mplayer.1 |    2 ++
 input/input.c         |   10 ++++++++++
 3 files changed, 14 insertions(+), 0 deletions(-)

diff --git a/DOCS/man/en/mplayer.1 b/DOCS/man/en/mplayer.1
index 19d3545..6961fee 100644
--- a/DOCS/man/en/mplayer.1
+++ b/DOCS/man/en/mplayer.1
@@ -218,6 +218,8 @@ Seek backward/\:forward 10 seconds.
 Seek forward/\:backward 1 minute.
 .IPs "pgup and pgdown"
 Seek forward/\:backward 10 minutes.
+.IPs "F1 to F9"
+Seek to 10%, 20%, 30%, ... 90%.
 .IPs "[ and ]"
 Decrease/increase current playback speed by 10%.
 .IPs "{ and }"
diff --git a/DOCS/man/fr/mplayer.1 b/DOCS/man/fr/mplayer.1
index 59451b9..db8a09c 100644
--- a/DOCS/man/fr/mplayer.1
+++ b/DOCS/man/fr/mplayer.1
@@ -227,6 +227,8 @@ Recule/\:avance de 10 secondes.
 Avance/\:recule/ d'1 minute.
 .IPs "PG.PRÉC. et PG.SUIV."
 Avance/\:recule de 10 minutes
+.IPS "F1 à F9"
+Sauter à 10%, 20%, 30%, ... 90%.
 .IPs "[ et ]"
 Diminue/accélère la vitesse courante de lecture de 10%.
 .IPs "{ and }"
diff --git a/input/input.c b/input/input.c
index 011353f..a6160b5 100644
--- a/input/input.c
+++ b/input/input.c
@@ -362,6 +362,16 @@ static const mp_cmd_bind_t def_cmd_binds[] = {
   { {  MOUSE_BTN5, 0 }, "volume 1" },
   { {  MOUSE_BTN6, 0 }, "volume -1" },
 
+  { { KEY_F + 1, 0 }, "seek 10 1" },
+  { { KEY_F + 2, 0 }, "seek 20 1" },
+  { { KEY_F + 3, 0 }, "seek 30 1" },
+  { { KEY_F + 4, 0 }, "seek 40 1" },
+  { { KEY_F + 5, 0 }, "seek 50 1" },
+  { { KEY_F + 6, 0 }, "seek 60 1" },
+  { { KEY_F + 7, 0 }, "seek 70 1" },
+  { { KEY_F + 8, 0 }, "seek 80 1" },
+  { { KEY_F + 9, 0 }, "seek 90 1" },
+
 #ifdef CONFIG_DVDNAV
   { { KEY_KP8, 0 }, "dvdnav up" },   // up
   { { KEY_KP2, 0 }, "dvdnav down" },   // down
-- 
1.7.3.2


--6b3yLyRKT1M6kiA0--


More information about the MPlayer-dev-eng mailing list