summaryrefslogtreecommitdiff
path: root/ffplay.c
diff options
context:
space:
mode:
authorGanesh Ajjanagadde <gajjanagadde@gmail.com>2015-09-26 11:37:03 -0400
committerMarton Balint <cus@passwd.hu>2015-09-27 00:54:29 +0200
commit265b106b9296d20c60cfb1cab64388e62150d066 (patch)
tree59a4b8399801bf9d2c80d597552152fe07b6a384 /ffplay.c
parent20b079963bf8985c2b7d85452426593bd5d10b9e (diff)
ffplay: introduce key repeats
Key repeats have been introduced simply because they improve usability in my experience for volume, brightness, and other such controls by speeding up the time taken to go from 0 to max intensity. As a side benefit, this enables rapid seeking through a file via left/right keys. Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com> Signed-off-by: Marton Balint <cus@passwd.hu>
Diffstat (limited to 'ffplay.c')
-rw-r--r--ffplay.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ffplay.c b/ffplay.c
index d302793924..9b5ee844e2 100644
--- a/ffplay.c
+++ b/ffplay.c
@@ -3740,6 +3740,8 @@ int main(int argc, char **argv)
SDL_EventState(SDL_SYSWMEVENT, SDL_IGNORE);
SDL_EventState(SDL_USEREVENT, SDL_IGNORE);
+ SDL_EnableKeyRepeat(SDL_DEFAULT_REPEAT_DELAY, SDL_DEFAULT_REPEAT_INTERVAL);
+
if (av_lockmgr_register(lockmgr)) {
av_log(NULL, AV_LOG_FATAL, "Could not initialize lock manager!\n");
do_exit(NULL);