mirror of
https://gitee.com/xia-chu/ZLMediaKit.git
synced 2026-05-19 16:27:50 +08:00
rtp级联速度太慢时主动限制上游接收速度 2
This commit is contained in:
parent
d57c63dca6
commit
921a6505d6
@ -40,6 +40,15 @@ void RtpSender::startSend(const MediaSource &sender, const MediaSourceEvent::Sen
|
|||||||
_origin_socket = dynamic_pointer_cast<Socket>(sender.getOriginSock());
|
_origin_socket = dynamic_pointer_cast<Socket>(sender.getOriginSock());
|
||||||
} catch (...) {
|
} catch (...) {
|
||||||
}
|
}
|
||||||
|
if (!_origin_socket) {
|
||||||
|
try {
|
||||||
|
auto process = dynamic_pointer_cast<RtpProcess>(sender.getOriginSock());
|
||||||
|
if (process) {
|
||||||
|
_origin_socket = process->getSock();
|
||||||
|
}
|
||||||
|
} catch (...) {
|
||||||
|
}
|
||||||
|
}
|
||||||
_args = args;
|
_args = args;
|
||||||
if (!_interface) {
|
if (!_interface) {
|
||||||
// 重连时不重新创建对象 [AUTO-TRANSLATED:b788cd5d]
|
// 重连时不重新创建对象 [AUTO-TRANSLATED:b788cd5d]
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user