优化点播相关代码

This commit is contained in:
xiongziliang 2020-04-04 08:30:20 +08:00
parent 6e5cd0345d
commit a581f78d12

View File

@ -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){
#ifdef ENABLE_MP4
GET_CONFIG(string, appName, Record::kAppName);
if (checkApp && app != appName) {
return nullptr;
}
#ifdef ENABLE_MP4
try {
MP4Reader::Ptr pReader(new MP4Reader(vhost, app, stream, filePath));
pReader->startReadMP4();