Index: webrtc/logging/rtc_event_log/rtc_event_log_parser.cc |
diff --git a/webrtc/logging/rtc_event_log/rtc_event_log_parser.cc b/webrtc/logging/rtc_event_log/rtc_event_log_parser.cc |
index 6194d3a56dee477e8257899d375f0773c1eaae18..d46b9da079e3e4d20d6d19e564553283e12e4e38 100644 |
--- a/webrtc/logging/rtc_event_log/rtc_event_log_parser.cc |
+++ b/webrtc/logging/rtc_event_log/rtc_event_log_parser.cc |
@@ -22,7 +22,6 @@ |
#include "webrtc/base/checks.h" |
#include "webrtc/base/logging.h" |
#include "webrtc/base/protobuf_utils.h" |
-#include "webrtc/call/call.h" |
#include "webrtc/logging/rtc_event_log/rtc_event_log.h" |
#include "webrtc/modules/audio_coding/audio_network_adaptor/include/audio_network_adaptor.h" |
#include "webrtc/modules/remote_bitrate_estimator/include/bwe_defines.h" |
@@ -31,21 +30,6 @@ |
namespace webrtc { |
namespace { |
-MediaType GetRuntimeMediaType(rtclog::MediaType media_type) { |
- switch (media_type) { |
- case rtclog::MediaType::ANY: |
- return MediaType::ANY; |
- case rtclog::MediaType::AUDIO: |
- return MediaType::AUDIO; |
- case rtclog::MediaType::VIDEO: |
- return MediaType::VIDEO; |
- case rtclog::MediaType::DATA: |
- return MediaType::DATA; |
- } |
- RTC_NOTREACHED(); |
- return MediaType::ANY; |
-} |
- |
RtcpMode GetRuntimeRtcpMode(rtclog::VideoReceiveConfig::RtcpMode rtcp_mode) { |
switch (rtcp_mode) { |
case rtclog::VideoReceiveConfig::RTCP_COMPOUND: |
@@ -179,7 +163,8 @@ bool ParsedRtcEventLog::ParseStream(std::istream& stream) { |
// Read the next message tag. The tag number is defined as |
// (fieldnumber << 3) | wire_type. In our case, the field number is |
- // supposed to be 1 and the wire type for an length-delimited field is 2. |
+ // supposed to be 1 and the wire type for an |
+ // length-deli"../call:call_interfaces",mited field is 2. |
const uint64_t kExpectedTag = (1 << 3) | 2; |
std::tie(tag, success) = ParseVarInt(stream); |
if (!success) { |
@@ -239,7 +224,6 @@ ParsedRtcEventLog::EventType ParsedRtcEventLog::GetEventType( |
// The header must have space for at least IP_PACKET_SIZE bytes. |
void ParsedRtcEventLog::GetRtpHeader(size_t index, |
PacketDirection* incoming, |
- MediaType* media_type, |
uint8_t* header, |
size_t* header_length, |
size_t* total_length) const { |
@@ -254,11 +238,6 @@ void ParsedRtcEventLog::GetRtpHeader(size_t index, |
if (incoming != nullptr) { |
*incoming = rtp_packet.incoming() ? kIncomingPacket : kOutgoingPacket; |
} |
- // Get media type. |
- RTC_CHECK(rtp_packet.has_type()); |
- if (media_type != nullptr) { |
- *media_type = GetRuntimeMediaType(rtp_packet.type()); |
- } |
// Get packet length. |
RTC_CHECK(rtp_packet.has_packet_length()); |
if (total_length != nullptr) { |
@@ -282,7 +261,6 @@ void ParsedRtcEventLog::GetRtpHeader(size_t index, |
// The packet must have space for at least IP_PACKET_SIZE bytes. |
void ParsedRtcEventLog::GetRtcpPacket(size_t index, |
PacketDirection* incoming, |
- MediaType* media_type, |
uint8_t* packet, |
size_t* length) const { |
RTC_CHECK_LT(index, GetNumberOfEvents()); |
@@ -296,11 +274,6 @@ void ParsedRtcEventLog::GetRtcpPacket(size_t index, |
if (incoming != nullptr) { |
*incoming = rtcp_packet.incoming() ? kIncomingPacket : kOutgoingPacket; |
} |
- // Get media type. |
- RTC_CHECK(rtcp_packet.has_type()); |
- if (media_type != nullptr) { |
- *media_type = GetRuntimeMediaType(rtcp_packet.type()); |
- } |
// Get packet length. |
RTC_CHECK(rtcp_packet.has_packet_data()); |
if (length != nullptr) { |