Commit a581f78d by xiongziliang

优化点播相关代码

parent 6e5cd034
...@@ -428,11 +428,11 @@ void MediaSourceEvent::onNoneReader(MediaSource &sender){ ...@@ -428,11 +428,11 @@ void MediaSourceEvent::onNoneReader(MediaSource &sender){
} }
MediaSource::Ptr MediaSource::createFromMP4(const string &schema, const string &vhost, const string &app, const string &stream, const string &filePath , bool checkApp){ MediaSource::Ptr MediaSource::createFromMP4(const string &schema, const string &vhost, const string &app, const string &stream, const string &filePath , bool checkApp){
#ifdef ENABLE_MP4
GET_CONFIG(string, appName, Record::kAppName); GET_CONFIG(string, appName, Record::kAppName);
if (checkApp && app != appName) { if (checkApp && app != appName) {
return nullptr; return nullptr;
} }
#ifdef ENABLE_MP4
try { try {
MP4Reader::Ptr pReader(new MP4Reader(vhost, app, stream, filePath)); MP4Reader::Ptr pReader(new MP4Reader(vhost, app, stream, filePath));
pReader->startReadMP4(); pReader->startReadMP4();
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论