From a6dd7933e0bd8ae1fd083639758f7fee9fc7a151 Mon Sep 17 00:00:00 2001 From: chenshijun <csj_sky@126.com> Date: 星期二, 10 九月 2019 16:34:10 +0800 Subject: [PATCH] Merge branch 'master' of ssh://192.168.1.14:29418/valib/goffmpeg --- csrc/buz/recorder.hpp | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/csrc/buz/recorder.hpp b/csrc/buz/recorder.hpp index 483404e..ba9cea4 100644 --- a/csrc/buz/recorder.hpp +++ b/csrc/buz/recorder.hpp @@ -40,6 +40,8 @@ void SetCallback(FUNC_REC_INFO cb){ func_rec_info_ = cb; } + + const bool ErrorOcurred(){return error_occured_;} private: void run_thread(); @@ -64,6 +66,8 @@ std::mutex mutex_pkt_; std::condition_variable cv_; + std::unique_ptr<std::thread> thrd_; + std::string dir_; std::string id_; @@ -71,6 +75,8 @@ int file_frame_index_; std::string file_path_; FUNC_REC_INFO func_rec_info_; + + bool error_occured_; }; } } -- Gitblit v1.8.0