From 8c95c6857542b3fe82cd614e45755902884358af Mon Sep 17 00:00:00 2001
From: chenshijun <csj_sky@126.com>
Date: 星期二, 29 十月 2019 14:13:13 +0800
Subject: [PATCH] 修改视频获取不到流的死等问题

---
 csrc/ffmpeg/log/log.cpp |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/csrc/ffmpeg/log/log.cpp b/csrc/ffmpeg/log/log.cpp
index 626574e..3a3f5cb 100644
--- a/csrc/ffmpeg/log/log.cpp
+++ b/csrc/ffmpeg/log/log.cpp
@@ -87,6 +87,7 @@
             std::string lc(temp);
             lc = "LIB-libcffmpeg.so-> " + lc;
             spdlog::get(log_name)->error(lc);
+            spdlog::get(log_name)->flush();
         }else{
             printf("%s\n", temp);
         }

--
Gitblit v1.8.0