Split LogRtpHeader and LogRtcpPacket into separate versions for incoming and outgoing packets.
Change LogIncomingRtcpPacket and LogOutgoingRtcpPacket to take ArrayView<uint8_t>. Split LogSessionAndReadBack into three functions and create class to share state between them. Split VerifyRtpEvent into one incoming and one outgoing version. Originally uploaded as https://codereview.webrtc.org/2997973002/ Bug: webrtc:8111 Change-Id: I22bdc35163bef60bc8293679226b19e41e8f49b3 Reviewed-on: https://webrtc-review.googlesource.com/5020 Reviewed-by: Fredrik Solenberg <solenberg@webrtc.org> Reviewed-by: Danil Chapovalov <danilchap@webrtc.org> Reviewed-by: Elad Alon <eladalon@webrtc.org> Commit-Queue: Björn Terelius <terelius@webrtc.org> Cr-Commit-Position: refs/heads/master@{#20063}
This commit is contained in:
committed by
Commit Bot
parent
5117b04787
commit
440216fcf3
@ -99,7 +99,8 @@ class PacketContainer : public rtcp::CompoundPacket,
|
||||
if (transport_->SendRtcp(data, length)) {
|
||||
bytes_sent_ += length;
|
||||
if (event_log_) {
|
||||
event_log_->LogRtcpPacket(kOutgoingPacket, data, length);
|
||||
event_log_->LogOutgoingRtcpPacket(
|
||||
rtc::ArrayView<const uint8_t>(data, length));
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -962,7 +963,8 @@ bool RTCPSender::SendFeedbackPacket(const rtcp::TransportFeedback& packet) {
|
||||
void OnPacketReady(uint8_t* data, size_t length) override {
|
||||
if (transport_->SendRtcp(data, length)) {
|
||||
if (event_log_) {
|
||||
event_log_->LogRtcpPacket(kOutgoingPacket, data, length);
|
||||
event_log_->LogOutgoingRtcpPacket(
|
||||
rtc::ArrayView<const uint8_t>(data, length));
|
||||
}
|
||||
} else {
|
||||
send_failure_ = true;
|
||||
|
||||
Reference in New Issue
Block a user