整理代码

This commit is contained in:
xiongziliang
2020-04-04 19:55:11 +08:00
parent 67f4ca4b83
commit 11420b868b
11 changed files with 14 additions and 18 deletions

View File

@@ -795,7 +795,7 @@ void RtspSession::handleReq_Play(const Parser &parser) {
rtp_info.pop_back();
sendRtspResponse("200 OK",
{"Range", StrPrinter << "npt=" << setiosflags(ios::fixed) << setprecision(2) << pMediaSrc->getTimeStamp(TrackInvalid) / 1000.0,
{"Range", StrPrinter << "npt=" << setiosflags(ios::fixed) << setprecision(2) << pMediaSrc->getTimeStamp(TrackInvalid) / 1000.0 << "-",
"RTP-Info",rtp_info
});
@@ -1033,7 +1033,7 @@ bool RtspSession::sendRtspResponse(const string &res_code,
header.emplace("Session",_strSession);
}
header.emplace("Server",SERVER_NAME "(build in " __DATE__ " " __TIME__ ")");
header.emplace("Server",SERVER_NAME);
header.emplace("Date",dateStr());
if(!sdp.empty()){