RtpSender: remove lock recursions.
This change removes lock recursions and adds thread annotations. Bug: webrtc:11567 Change-Id: I4d5a8b361b140c24f4bcd2dcb83706ca0b3927d2 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/176222 Reviewed-by: Danil Chapovalov <danilchap@webrtc.org> Commit-Queue: Markus Handell <handellm@webrtc.org> Cr-Commit-Position: refs/heads/master@{#31370}
This commit is contained in:
committed by
Commit Bot
parent
3eac111115
commit
0ee4ee85dd
@ -431,7 +431,7 @@ std::vector<std::unique_ptr<RtpPacketToSend>> RTPSender::GeneratePadding(
|
||||
|
||||
size_t padding_bytes_in_packet;
|
||||
const size_t max_payload_size =
|
||||
max_packet_size_ - FecOrPaddingPacketMaxRtpHeaderLength();
|
||||
max_packet_size_ - max_padding_fec_packet_header_;
|
||||
if (audio_configured_) {
|
||||
// Allow smaller padding packets for audio.
|
||||
padding_bytes_in_packet = rtc::SafeClamp<size_t>(
|
||||
|
||||
Reference in New Issue
Block a user