完善注释

This commit is contained in:
xiongziliang
2019-07-11 12:15:13 +08:00
parent d0d730985f
commit 757139312b
2 changed files with 5 additions and 3 deletions

View File

@@ -242,12 +242,12 @@ bool RtspPusher::handleAuthenticationFailure(const string &paramsStr) {
return false;
}
//有必须的情况下创建udp端口
//有必要的情况下创建udp端口
void RtspPusher::createUdpSockIfNecessary(int track_idx){
auto &rtpSockRef = _apUdpSock[track_idx];
if(!rtpSockRef){
rtpSockRef.reset(new Socket(getPoller()));
//rtp随机端口
if (!rtpSockRef->bindUdpSock(0, get_local_ip().data())) {
rtpSockRef.reset();
throw std::runtime_error("open rtp sock failed");