From fb795585160a6ce630276802adba27e8d8e363d6 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Sat, 8 Oct 2011 17:09:14 +0200 Subject: [PATCH] ffmpeg: dont call read_key() in decode_interrupt_cb() this can cause keys to be lost also its slow when read_key() is slow and there are a very large number of calls Signed-off-by: Michael Niedermayer --- ffmpeg.c | 1 - 1 file changed, 1 deletion(-) diff --git a/ffmpeg.c b/ffmpeg.c index e9133ec611..741b74c58b 100644 --- a/ffmpeg.c +++ b/ffmpeg.c @@ -614,7 +614,6 @@ static int read_key(void) static int decode_interrupt_cb(void) { - q_pressed += read_key() == 'q'; return q_pressed > 1; }