mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-06-27 04:22:20 +08:00
防止重复添加RtcpContext
This commit is contained in:
@@ -406,6 +406,7 @@ void RtspSession::onAuthSuccess() {
|
||||
strongSelf->shutdown(SockException(Err_shutdown,"can not find any available track in sdp"));
|
||||
return;
|
||||
}
|
||||
strongSelf->_rtcp_context.clear();
|
||||
for (auto &track : strongSelf->_sdp_track) {
|
||||
strongSelf->_rtcp_context.emplace_back(std::make_shared<RtcpContext>(track->_samplerate, false));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user