mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-06-22 08:52:20 +08:00
优化性能
This commit is contained in:
@@ -654,6 +654,7 @@ bool RtspSession::handleReq_Play() {
|
||||
|
||||
if(m_pRtpReader){
|
||||
weak_ptr<RtspSession> weakSelf = dynamic_pointer_cast<RtspSession>(shared_from_this());
|
||||
SockUtil::setNoDelay(m_pSender->rawFD(), false);
|
||||
m_pRtpReader->setReadCB([weakSelf](const RtpPacket::Ptr &pack) {
|
||||
auto strongSelf = weakSelf.lock();
|
||||
if(!strongSelf) {
|
||||
|
||||
Reference in New Issue
Block a user