修复拉取rtsp流 SETUP 返回 454 Session Not Found

This commit is contained in:
陈晓林 2020-12-29 12:16:35 +08:00 committed by GitHub
parent f9f9cde2b4
commit 2cb2fa1510
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -256,6 +256,8 @@ void RtspPlayer::handleResSETUP(const Parser &parser, unsigned int track_idx) {
}
if (track_idx == 0) {
_session_id = parser["Session"];
_session_id.append(";");
_session_id = FindField(_session_id.data(), nullptr, ";");
}
auto strTransport = parser["Transport"];