Remove ViEChannel simulcast lock.
Since the number of streams is now known on construction we can initialize all RTP modules on construction. They are internally locked so we don't nede a simulcast lock anymore. BUG=1695 R=mflodman@webrtc.org, stefan@webrtc.org Review URL: https://webrtc-codereview.appspot.com/52639004 . Cr-Commit-Position: refs/heads/master@{#9577}
This commit is contained in:
@ -472,10 +472,7 @@ int32_t ModuleRtpRtcpImpl::SetTransportOverhead(
|
||||
}
|
||||
|
||||
int32_t ModuleRtpRtcpImpl::SetMaxTransferUnit(const uint16_t mtu) {
|
||||
if (mtu > IP_PACKET_SIZE) {
|
||||
LOG(LS_ERROR) << "Invalid mtu: " << mtu;
|
||||
return -1;
|
||||
}
|
||||
DCHECK_LE(mtu, IP_PACKET_SIZE) << "Invalid mtu: " << mtu;
|
||||
return rtp_sender_.SetMaxPayloadLength(mtu - packet_overhead_,
|
||||
packet_overhead_);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user