mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-06-18 14:12:21 +08:00
修改常量命名
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user