From 5fcc22bab7b69b4a4f2513a2bcb380c1638233a1 Mon Sep 17 00:00:00 2001 From: baiyfcu Date: Wed, 8 Apr 2020 16:15:47 +0800 Subject: [PATCH] =?UTF-8?q?useBuf=E6=9A=82=E5=AE=9A=E4=B8=BAtrue=E6=97=B6s?= =?UTF-8?q?eek=E5=A4=B1=E8=B4=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Rtsp/RtspSession.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Rtsp/RtspSession.cpp b/src/Rtsp/RtspSession.cpp index 2d5698ae..d1e07a82 100644 --- a/src/Rtsp/RtspSession.cpp +++ b/src/Rtsp/RtspSession.cpp @@ -779,7 +779,7 @@ void RtspSession::handleReq_Play(const Parser &parser) { rtp_info.pop_back(); sendRtspResponse("200 OK", - {"Range", StrPrinter << "npt=" << setiosflags(ios::fixed) << setprecision(2) << (useBuf? iStartTime / 1000:pMediaSrc->getTimeStamp(TrackInvalid) / 1000.0), + {"Range", StrPrinter << "npt=" << setiosflags(ios::fixed) << setprecision(2) << (useBuf? pMediaSrc->getTimeStamp(TrackInvalid) / 1000.0 : iStartTime / 1000), "RTP-Info",rtp_info });