mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-10-30 08:17:36 +08:00
兼容旷世智能分析系统RTSP拉流客户端相关Bug (#3045)
旷世智能分析系统发送DESCRIBE命令时会夹带包括用户名密码完整的rtsp url,这不符个常规 Signed-off-by: Nashira <nashira@nashira.cn>
This commit is contained in:
parent
1cbfcd96e2
commit
34695ab1b8
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user