Commit 8993b596 authored by Michael Niedermayer's avatar Michael Niedermayer

Make sure the first q press doesnt f*ck up the protocols and thus written files.

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 90552407
......@@ -509,7 +509,8 @@ static int read_key(void)
static int decode_interrupt_cb(void)
{
return q_pressed || (q_pressed = read_key() == 'q');
q_pressed += read_key() == 'q';
return q_pressed > 1;
}
static int ffmpeg_exit(int ret)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment