csrc/worker/rec.hpp
@@ -2,12 +2,13 @@ #define _cffmpeg_rec_hpp_ #include <string> #include <memory> #include <unordered_map> #include <list> #include <mutex> #include "../buz/recorder.hpp" struct AVPacket; namespace ffwrapper { @@ -41,7 +42,7 @@ std::mutex mtx_recInfo_; // 缓存的视频帧,等待firerecsignal触发开始录像 std::list<buz::CPacket> list_pkt_; std::list<CPacket> list_pkt_; // 多线程,生产者线程reader push pkt,消费者,录像线程pop std::mutex mtx_pkt_;