修复编译失败问题

This commit is contained in:
xiongziliang 2019-12-04 10:52:26 +08:00
parent de33d6a847
commit de77460621

View File

@ -33,7 +33,7 @@
#include "Rtmp/RtmpPusher.h" #include "Rtmp/RtmpPusher.h"
#include "Common/config.h" #include "Common/config.h"
#include "Pusher/MediaPusher.h" #include "Pusher/MediaPusher.h"
#include "MediaFile/MediaReader.h" #include "Record/MP4Reader.h"
using namespace std; using namespace std;
using namespace toolkit; using namespace toolkit;
@ -63,7 +63,7 @@ void createPusher(const EventPoller::Ptr &poller,
const string &filePath, const string &filePath,
const string &url) { const string &url) {
//不限制APP名并且指定文件绝对路径 //不限制APP名并且指定文件绝对路径
auto src = MediaReader::onMakeMediaSource(schema,vhost,app,stream,filePath, false); auto src = MP4Reader::onMakeMediaSource(schema,vhost,app,stream,filePath, false);
if(!src){ if(!src){
//文件不存在 //文件不存在
WarnL << "MP4文件不存在:" << filePath; WarnL << "MP4文件不存在:" << filePath;