mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-26 12:37:09 +08:00
fix(rtcp/bye): 收到rtcp bye时不断开webrtc连接 (#2123)
bye(203) 会在 sender audio track mute 时出现, 不能作为 shutdown 的依据
This commit is contained in:
parent
6c655810ec
commit
bc4fa2bc53
@ -160,7 +160,6 @@ void WebRtcPusher::OnDtlsTransportClosed(const RTC::DtlsTransport *dtlsTransport
|
|||||||
}
|
}
|
||||||
|
|
||||||
void WebRtcPusher::onRtcpBye(){
|
void WebRtcPusher::onRtcpBye(){
|
||||||
_push_src = nullptr;
|
|
||||||
WebRtcTransportImp::onRtcpBye();
|
WebRtcTransportImp::onRtcpBye();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -794,7 +794,7 @@ void WebRtcTransportImp::onRtcp(const char *buf, size_t len) {
|
|||||||
_ssrc_to_track.erase(it);
|
_ssrc_to_track.erase(it);
|
||||||
}
|
}
|
||||||
onRtcpBye();
|
onRtcpBye();
|
||||||
onShutdown(SockException(Err_eof, "rtcp bye message received"));
|
// bye 会在 sender audio track mute 时出现, 因此不能作为 shutdown 的依据
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case RtcpType::RTCP_PSFB:
|
case RtcpType::RTCP_PSFB:
|
||||||
|
Loading…
Reference in New Issue
Block a user