[FFmpeg-cvslog] ffmpeg: dont call read_key() in decode_interrupt_cb() this can cause keys to be lost
Michael Niedermayer
git at videolan.org
Sat Oct 8 19:30:35 CEST 2011
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sat Oct 8 17:09:14 2011 +0200| [fb795585160a6ce630276802adba27e8d8e363d6] | committer: Michael Niedermayer
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 at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=fb795585160a6ce630276802adba27e8d8e363d6
---
ffmpeg.c | 1 -
1 files changed, 0 insertions(+), 1 deletions(-)
diff --git a/ffmpeg.c b/ffmpeg.c
index e9133ec..741b74c 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;
}
More information about the ffmpeg-cvslog
mailing list