From db1e850ef35dc29ecbb7f8acfecf1bf34eed7c7c Mon Sep 17 00:00:00 2001 From: xiongziliang <771730766@qq.com> Date: Fri, 10 May 2019 18:40:30 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Drtsp=20over=20http=E7=9A=84bu?= =?UTF-8?q?g?= 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 db6f29bd..d0c57785 100644 --- a/src/Rtsp/RtspSession.cpp +++ b/src/Rtsp/RtspSession.cpp @@ -148,7 +148,7 @@ void RtspSession::onRecv(const Buffer::Ptr &pBuf) { void RtspSession::onWholeRtspPacket(Parser &parser) { string strCmd = parser.Method(); //提取出请求命令字 _iCseq = atoi(parser["CSeq"].data()); - if(_strContentBase.empty()){ + if(_strContentBase.empty() && strCmd != "GET"){ _strContentBase = parser.Url(); _mediaInfo.parse(parser.FullUrl()); }