[FFmpeg-cvslog] fftools/ffmpeg: Output log message when interactive q command is received

Soft Works git at videolan.org
Sat Nov 13 21:12:05 EET 2021


ffmpeg | branch: master | Soft Works <softworkz at hotmail.com> | Wed Oct 13 08:34:10 2021 +0000| [ce47ce079ae0e1f60ccca3d614181a4ba05cc2e2] | committer: Marton Balint

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 at hotmail.com>
Signed-off-by: Marton Balint <cus at passwd.hu>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=ce47ce079ae0e1f60ccca3d614181a4ba05cc2e2
---

 fftools/ffmpeg.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

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;



More information about the ffmpeg-cvslog mailing list