修复rtsp over http的bug

This commit is contained in:
xiongziliang 2019-05-10 18:40:30 +08:00
parent 37d842e444
commit db1e850ef3

View File

@ -148,7 +148,7 @@ void RtspSession::onRecv(const Buffer::Ptr &pBuf) {
void RtspSession::onWholeRtspPacket(Parser &parser) { void RtspSession::onWholeRtspPacket(Parser &parser) {
string strCmd = parser.Method(); //提取出请求命令字 string strCmd = parser.Method(); //提取出请求命令字
_iCseq = atoi(parser["CSeq"].data()); _iCseq = atoi(parser["CSeq"].data());
if(_strContentBase.empty()){ if(_strContentBase.empty() && strCmd != "GET"){
_strContentBase = parser.Url(); _strContentBase = parser.Url();
_mediaInfo.parse(parser.FullUrl()); _mediaInfo.parse(parser.FullUrl());
} }