mirror of
https://gitee.com/xia-chu/ZLMediaKit.git
synced 2026-05-06 19:07:49 +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());
|
||||
} catch (...) {
|
||||
}
|
||||
if (!_origin_socket) {
|
||||
try {
|
||||
auto process = dynamic_pointer_cast<RtpProcess>(sender.getOriginSock());
|
||||
if (process) {
|
||||
_origin_socket = process->getSock();
|
||||
}
|
||||
} catch (...) {
|
||||
}
|
||||
}
|
||||
_args = args;
|
||||
if (!_interface) {
|
||||
// 重连时不重新创建对象 [AUTO-TRANSLATED:b788cd5d]
|
||||
|
||||
Loading…
Reference in New Issue
Block a user