兼容旷世智能分析系统RTSP拉流客户端相关Bug (#3045)

旷世智能分析系统发送DESCRIBE命令时会夹带包括用户名密码完整的rtsp url,这不符个常规

Signed-off-by: Nashira <nashira@nashira.cn>
This commit is contained in:
JiaHao 2023-11-30 17:53:47 +08:00 committed by GitHub
parent 1cbfcd96e2
commit 34695ab1b8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -131,7 +131,9 @@ void RtspSession::onWholeRtspPacket(Parser &parser) {
string method = parser.method(); //提取出请求命令字
_cseq = atoi(parser["CSeq"].data());
if (_content_base.empty() && method != "GET") {
_content_base = parser.url();
RtspUrl rtsp;
rtsp.parse(parser.url());
_content_base = rtsp._url;
_media_info.parse(parser.fullUrl());
_media_info.schema = RTSP_SCHEMA;
}