[FFmpeg-devel] [PATCHv2 2/2] ffplay: introduce key repeats

Marton Balint cus at passwd.hu
Sun Sep 27 00:59:19 CEST 2015



On Sat, 26 Sep 2015, Ganesh Ajjanagadde wrote:

> 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 at gmail.com>
> ---
> ffplay.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/ffplay.c b/ffplay.c
> index eada863..fb4af24 100644
> --- a/ffplay.c
> +++ b/ffplay.c
> @@ -3772,6 +3772,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);
> +

Applied, thanks.

Marton


More information about the ffmpeg-devel mailing list