From be9c1d1f659b0ff31f656424c478e83a4f7c53b5 Mon Sep 17 00:00:00 2001 From: zhangmeng <775834166@qq.com> Date: 星期五, 20 九月 2019 11:44:19 +0800 Subject: [PATCH] update ffmpeg --- csrc/worker/rec.cpp | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/csrc/worker/rec.cpp b/csrc/worker/rec.cpp index 4307d6e..797e047 100644 --- a/csrc/worker/rec.cpp +++ b/csrc/worker/rec.cpp @@ -40,7 +40,7 @@ list_recInfo_.emplace_back(info); } - std::unique_ptr<buz::Recorder> rec::startRec(std::string id, std::string dir, const int mind, const int maxd){ + std::unique_ptr<buz::Recorder> rec::startRec(std::string id, std::string dir, const int mind, const int maxd, const bool audio){ if(!recRef_){ logIt("Init wrapper first"); return nullptr; @@ -54,7 +54,7 @@ int trycnt = 0; while(trycnt < 100){ - auto ret = rec->Run(dir.c_str(), mind, maxd); + auto ret = rec->Run(dir.c_str(), mind, maxd, audio); if(ret == 0) break; usleep(200000); } @@ -133,7 +133,7 @@ return recRef_ != NULL; } - void rec::NewRec(const char* id, const char *output, const int mindur, const int maxdur){ + void rec::NewRec(const char* id, const char *output, const int mindur, const int maxdur, const bool audio){ std::string rid(id); std::string dir(output); @@ -145,7 +145,7 @@ if (map_rec_.find(rid) != map_rec_.end()){ map_rec_.erase(rid); } - map_rec_[rid] = startRec(rid, dir, mindur, maxdur); + map_rec_[rid] = startRec(rid, dir, mindur, maxdur, audio); } } -- Gitblit v1.8.0