1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

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>
This commit is contained in:
Michael Niedermayer 2011-10-08 17:09:14 +02:00
parent 1339702540
commit fb79558516

View File

@ -614,7 +614,6 @@ static int read_key(void)
static int decode_interrupt_cb(void) static int decode_interrupt_cb(void)
{ {
q_pressed += read_key() == 'q';
return q_pressed > 1; return q_pressed > 1;
} }