[FFmpeg-devel] [PATCH 3/3] ffmpeg: set AV_LOG_ASYNC in sigterm_handler()

Michael Niedermayer michaelni at gmx.at
Thu Mar 20 03:57:59 CET 2014


Fixes deadlock

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
---
 ffmpeg.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/ffmpeg.c b/ffmpeg.c
index e345e41..fdc9220 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -321,6 +321,7 @@ sigterm_handler(int sig)
 {
     received_sigterm = sig;
     received_nb_signals++;
+    av_log_set_flags(AV_LOG_ASYNC | av_log_get_flags());
     term_exit();
     if(received_nb_signals > 3)
         exit_program(123);
-- 
1.7.9.5



More information about the ffmpeg-devel mailing list