Revert of Unify rtcp packet setters (patchset #8 id:130001 of https://codereview.webrtc.org/2348623003/ )
Reason for revert: Breaks compilation of internal downstream project. Original issue's description: > Unify rtcp packet setters > Renamed setters in rtcp classes > from WithField to SetField > from WithItem to AddItem or SetItems > from From to SetSenderSsrc > from To to SetMediaSsrc > Some redundant or unsued setters removed. > Pass-by-const& replaced with pass-by-value when appropriate. > > BUG=webrtc:5260 > > Committed: https://crrev.com/20e77c7b8a9f19942ef3c3c4f1fa3888b2cd54ea > Cr-Commit-Position: refs/heads/master@{#14393} TBR=sprang@webrtc.org,stefan@webrtc.org,danilchap@webrtc.org # Skipping CQ checks because original CL landed less than 1 days ago. NOPRESUBMIT=true NOTREECHECKS=true NOTRY=true BUG=webrtc:5260 Review-Url: https://codereview.webrtc.org/2372713005 Cr-Commit-Position: refs/heads/master@{#14400}
This commit is contained in:
@ -130,12 +130,12 @@ bool Rpsi::Create(uint8_t* packet,
|
||||
return true;
|
||||
}
|
||||
|
||||
void Rpsi::SetPayloadType(uint8_t payload) {
|
||||
void Rpsi::WithPayloadType(uint8_t payload) {
|
||||
RTC_DCHECK_LE(payload, 0x7f);
|
||||
payload_type_ = payload;
|
||||
}
|
||||
|
||||
void Rpsi::SetPictureId(uint64_t picture_id) {
|
||||
void Rpsi::WithPictureId(uint64_t picture_id) {
|
||||
picture_id_ = picture_id;
|
||||
block_length_ = CalculateBlockLength(RequiredBytes(picture_id_));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user