mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-22 02:34:26 +08:00
提升rtsp协议兼容性 (#4003)
海康解码器播放rtsp流url带了?key=value参数,SETUP时会带着这些参数,导致获取trackid失败
This commit is contained in:
parent
ef11c66fb8
commit
8e823b3b74
@ -1136,7 +1136,7 @@ int RtspSession::getTrackIndexByTrackType(TrackType type) {
|
||||
|
||||
int RtspSession::getTrackIndexByControlUrl(const string &control_url) {
|
||||
for (size_t i = 0; i < _sdp_track.size(); ++i) {
|
||||
if (control_url == _sdp_track[i]->getControlUrl(_content_base)) {
|
||||
if (control_url.find(_sdp_track[i]->getControlUrl(_content_base)) == 0) {
|
||||
return i;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user