summaryrefslogtreecommitdiff
path: root/ffplay.c
diff options
context:
space:
mode:
authorPanagiotis H.M. Issaris <takis.issaris@uhasselt.be>2011-11-28 13:48:13 +0100
committerMarton Balint <cus@passwd.hu>2011-12-14 21:09:08 +0100
commit91a3ea671adda0039c6c221f158a88391416b574 (patch)
tree28e17bb0a0084e0c6119289f57854c2e2195e8fb /ffplay.c
parent9fb2b412585f94d4a74eb93598b0b1cc3482c189 (diff)
ffplay: add 10 minute seek support to ffplay
Signed-off-by: Marton Balint <cus@passwd.hu>
Diffstat (limited to 'ffplay.c')
-rw-r--r--ffplay.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/ffplay.c b/ffplay.c
index 391f74e9f5..d10ac693c4 100644
--- a/ffplay.c
+++ b/ffplay.c
@@ -2850,6 +2850,12 @@ static void event_loop(VideoState *cur_stream)
case SDLK_w:
toggle_audio_display(cur_stream);
break;
+ case SDLK_PAGEUP:
+ incr = 600.0;
+ goto do_seek;
+ case SDLK_PAGEDOWN:
+ incr = -600.0;
+ goto do_seek;
case SDLK_LEFT:
incr = -10.0;
goto do_seek;
@@ -3119,6 +3125,7 @@ static int opt_help(const char *opt, const char *arg)
"s activate frame-step mode\n"
"left/right seek backward/forward 10 seconds\n"
"down/up seek backward/forward 1 minute\n"
+ "page down/page up seek backward/forward 10 minutes\n"
"mouse click seek to percentage in file corresponding to fraction of width\n"
);
return 0;