完善getOwnerPoller相关逻辑

This commit is contained in:
xiongziliang
2022-06-11 13:08:58 +08:00
parent b6d3ec5251
commit 97116e1208
8 changed files with 21 additions and 3 deletions

View File

@@ -598,6 +598,10 @@ std::shared_ptr<SockInfo> RtmpSession::getOriginSock(MediaSource &sender) const
return const_cast<RtmpSession *>(this)->shared_from_this();
}
toolkit::EventPoller::Ptr RtmpSession::getOwnerPoller(MediaSource &sender) {
return getPoller();
}
void RtmpSession::setSocketFlags(){
GET_CONFIG(int, merge_write_ms, General::kMergeWriteMS);
if (merge_write_ms > 0) {