summaryrefslogtreecommitdiff
path: root/ffmpeg.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2011-10-08 17:09:14 +0200
committerMichael Niedermayer <michaelni@gmx.at>2011-10-08 17:26:43 +0200
commitfb795585160a6ce630276802adba27e8d8e363d6 (patch)
treeee8c7f882da2485ad7726ab3e7a81c764cbecbef /ffmpeg.c
parent13397025400b8e61af6ef5245c87b3cb32a436eb (diff)
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 <michaelni@gmx.at>
Diffstat (limited to 'ffmpeg.c')
-rw-r--r--ffmpeg.c1
1 files changed, 0 insertions, 1 deletions
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;
}