diff options
author | Soft Works <softworkz@hotmail.com> | 2021-10-13 08:34:10 +0000 |
---|---|---|
committer | Marton Balint <cus@passwd.hu> | 2021-11-13 19:55:32 +0100 |
commit | ce47ce079ae0e1f60ccca3d614181a4ba05cc2e2 (patch) | |
tree | 1bd190fe7e25a6268aa6d39ed03e80d9824fc99b | |
parent | 99a49f91474b7c3836e007d366824bf3827e0009 (diff) | |
download | ffmpeg-ce47ce079ae0e1f60ccca3d614181a4ba05cc2e2.tar.gz |
fftools/ffmpeg: Output log message when interactive q command is received
When viewing logs, it's sometimes useful to be able to see whether
execution was ended via q command.
Signed-off-by: softworkz <softworkz@hotmail.com>
Signed-off-by: Marton Balint <cus@passwd.hu>
-rw-r--r-- | fftools/ffmpeg.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/fftools/ffmpeg.c b/fftools/ffmpeg.c index 7545b7c68e..d141f34df9 100644 --- a/fftools/ffmpeg.c +++ b/fftools/ffmpeg.c @@ -3991,8 +3991,10 @@ static int check_keyboard_interaction(int64_t cur_time) last_time = cur_time; }else key = -1; - if (key == 'q') + if (key == 'q') { + av_log(NULL, AV_LOG_INFO, "\n\n[q] command received. Exiting.\n\n"); return AVERROR_EXIT; + } if (key == '+') av_log_set_level(av_log_get_level()+10); if (key == '-') av_log_set_level(av_log_get_level()-10); if (key == 's') qp_hist ^= 1; |