修改常量命名

This commit is contained in:
ziyue
2021-10-16 16:58:03 +08:00
parent 8769ea83a9
commit f5f58196b5
12 changed files with 19 additions and 19 deletions

View File

@@ -1028,7 +1028,7 @@ bool RtspSession::sendRtspResponse(const string &res_code, const StrCaseMap &hea
header.emplace("Session", _sessionid);
}
header.emplace("Server",SERVER_NAME);
header.emplace("Server",kServerName);
header.emplace("Date",dateStr());
if(!sdp.empty()){
@@ -1163,7 +1163,7 @@ void RtspSession::updateRtcpContext(const RtpPacket::Ptr &rtp){
auto ssrc = rtp->getSSRC();
auto rtcp = _push_src ? rtcp_ctx->createRtcpRR(ssrc + 1, ssrc) : rtcp_ctx->createRtcpSR(ssrc);
auto rtcp_sdes = RtcpSdes::create({SERVER_NAME});
auto rtcp_sdes = RtcpSdes::create({kServerName});
rtcp_sdes->chunks.type = (uint8_t)SdesType::RTCP_SDES_CNAME;
rtcp_sdes->chunks.ssrc = htonl(ssrc);
send_rtcp(this, track_index, std::move(rtcp));