Merge remote-tracking branch 'github/master' into dev

This commit is contained in:
xiongziliang
2021-04-18 23:13:47 +08:00
3 changed files with 10 additions and 1 deletions

View File

@@ -521,6 +521,7 @@ MediaSource::Ptr MediaSource::createFromMP4(const string &schema, const string &
void MediaSourceEvent::onReaderChanged(MediaSource &sender, int size){
if (size || totalReaderCount(sender)) {
//还有人观看该视频,不触发关闭事件
_async_close_timer = nullptr;
return;
}
//没有任何人观看该视频源,表明该源可以关闭了