Merge pull request #662 from musicwood/patch-1

修复拉取rtsp流 SETUP 返回 454 Session Not Found
This commit is contained in:
夏楚 2020-12-29 12:21:24 +08:00 committed by GitHub
commit 30efc9f37f
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"];