Reduce usage of tmmbr information structure

by creating it on accepted tmmbr/tmmbn rtcp messages
rather on sender/receiver reports.

BUG=webrtc:5565

Review-Url: https://codereview.webrtc.org/2702373002
Cr-Commit-Position: refs/heads/master@{#16748}
This commit is contained in:
danilchap
2017-02-21 05:38:19 -08:00
committed by Commit bot
parent 4e4dfbd45d
commit ec067e9d21
2 changed files with 28 additions and 21 deletions

View File

@ -131,7 +131,10 @@ class RTCPReceiver {
void TriggerCallbacksFromRtcpPacket(
const PacketInformation& packet_information);
void CreateTmmbrInformation(uint32_t remote_ssrc)
TmmbrInformation* FindOrCreateTmmbrInfo(uint32_t remote_ssrc)
EXCLUSIVE_LOCKS_REQUIRED(rtcp_receiver_lock_);
// Update TmmbrInformation (if present) is alive.
void UpdateTmmbrRemoteIsAlive(uint32_t remote_ssrc)
EXCLUSIVE_LOCKS_REQUIRED(rtcp_receiver_lock_);
TmmbrInformation* GetTmmbrInformation(uint32_t remote_ssrc)
EXCLUSIVE_LOCKS_REQUIRED(rtcp_receiver_lock_);