mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-06-30 14:52:23 +08:00
大幅优化性能
This commit is contained in:
@@ -174,7 +174,7 @@ void RtspPlayer::onConnect(const SockException &err){
|
||||
strongSelf->onPlayResult_l(SockException(Err_timeout,"play rtsp timeout"));
|
||||
strongSelf->teardown();
|
||||
return false;
|
||||
}));
|
||||
},getExecutor()));
|
||||
}
|
||||
|
||||
void RtspPlayer::onRecv(const Buffer::Ptr& pBuf) {
|
||||
@@ -414,7 +414,7 @@ void RtspPlayer::handleResSETUP(const Parser &parser, unsigned int uiTrackIndex)
|
||||
return false;
|
||||
}
|
||||
return strongSelf->sendOptions();
|
||||
}));
|
||||
},getExecutor()));
|
||||
pause(false);
|
||||
}
|
||||
|
||||
@@ -808,7 +808,7 @@ void RtspPlayer::onPlayResult_l(const SockException &ex) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}));
|
||||
},getExecutor()));
|
||||
}
|
||||
onPlayResult(ex);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user