rtsp/rtmp点播改成后台线程读取

This commit is contained in:
xiongziliang 2019-09-27 18:05:42 +08:00
parent 9fc31f3d3e
commit 940c3ffbca
1 changed files with 2 additions and 1 deletions

View File

@ -30,6 +30,7 @@
#include "Http/HttpSession.h" #include "Http/HttpSession.h"
#include "Extension/AAC.h" #include "Extension/AAC.h"
#include "Extension/H264.h" #include "Extension/H264.h"
#include "Thread/WorkThreadPool.h"
using namespace toolkit; using namespace toolkit;
@ -37,7 +38,7 @@ namespace mediakit {
#ifdef ENABLE_MP4V2 #ifdef ENABLE_MP4V2
MediaReader::MediaReader(const string &strVhost,const string &strApp, const string &strId,const string &filePath ) { MediaReader::MediaReader(const string &strVhost,const string &strApp, const string &strId,const string &filePath ) {
_poller = EventPollerPool::Instance().getPoller(); _poller = WorkThreadPool::Instance().getPoller();
auto strFileName = filePath; auto strFileName = filePath;
if(strFileName.empty()){ if(strFileName.empty()){
GET_CONFIG(string,recordPath,Record::kFilePath); GET_CONFIG(string,recordPath,Record::kFilePath);