Stop using LOG macros in favor of RTC_ prefixed macros.
This CL has been generated with the following script: for m in PLOG \ LOG_TAG \ LOG_GLEM \ LOG_GLE_EX \ LOG_GLE \ LAST_SYSTEM_ERROR \ LOG_ERRNO_EX \ LOG_ERRNO \ LOG_ERR_EX \ LOG_ERR \ LOG_V \ LOG_F \ LOG_T_F \ LOG_E \ LOG_T \ LOG_CHECK_LEVEL_V \ LOG_CHECK_LEVEL \ LOG do git grep -l $m | xargs sed -i "s,\b$m\b,RTC_$m,g" done git checkout rtc_base/logging.h git cl format Bug: webrtc:8452 Change-Id: I1a53ef3e0a5ef6e244e62b2e012b864914784600 Reviewed-on: https://webrtc-review.googlesource.com/21325 Reviewed-by: Niels Moller <nisse@webrtc.org> Reviewed-by: Karl Wiberg <kwiberg@webrtc.org> Commit-Queue: Mirko Bonadei <mbonadei@webrtc.org> Cr-Commit-Position: refs/heads/master@{#20617}
This commit is contained in:
committed by
Commit Bot
parent
34fa309129
commit
675513b96a
@ -76,7 +76,7 @@ int32_t UlpfecReceiverImpl::AddReceivedRedPacket(
|
||||
size_t packet_length,
|
||||
uint8_t ulpfec_payload_type) {
|
||||
if (header.ssrc != ssrc_) {
|
||||
LOG(LS_WARNING)
|
||||
RTC_LOG(LS_WARNING)
|
||||
<< "Received RED packet with different SSRC than expected; dropping.";
|
||||
return -1;
|
||||
}
|
||||
@ -87,7 +87,7 @@ int32_t UlpfecReceiverImpl::AddReceivedRedPacket(
|
||||
size_t payload_data_length = packet_length - header.headerLength;
|
||||
|
||||
if (payload_data_length == 0) {
|
||||
LOG(LS_WARNING) << "Corrupt/truncated FEC packet.";
|
||||
RTC_LOG(LS_WARNING) << "Corrupt/truncated FEC packet.";
|
||||
return -1;
|
||||
}
|
||||
|
||||
@ -107,7 +107,7 @@ int32_t UlpfecReceiverImpl::AddReceivedRedPacket(
|
||||
// f bit set in RED header, i.e. there are more than one RED header blocks.
|
||||
red_header_length = 4;
|
||||
if (payload_data_length < red_header_length + 1u) {
|
||||
LOG(LS_WARNING) << "Corrupt/truncated FEC packet.";
|
||||
RTC_LOG(LS_WARNING) << "Corrupt/truncated FEC packet.";
|
||||
return -1;
|
||||
}
|
||||
|
||||
@ -116,7 +116,7 @@ int32_t UlpfecReceiverImpl::AddReceivedRedPacket(
|
||||
timestamp_offset += incoming_rtp_packet[header.headerLength + 2];
|
||||
timestamp_offset = timestamp_offset >> 2;
|
||||
if (timestamp_offset != 0) {
|
||||
LOG(LS_WARNING) << "Corrupt payload found.";
|
||||
RTC_LOG(LS_WARNING) << "Corrupt payload found.";
|
||||
return -1;
|
||||
}
|
||||
|
||||
@ -125,13 +125,13 @@ int32_t UlpfecReceiverImpl::AddReceivedRedPacket(
|
||||
|
||||
// Check next RED header block.
|
||||
if (incoming_rtp_packet[header.headerLength + 4] & 0x80) {
|
||||
LOG(LS_WARNING) << "More than 2 blocks in packet not supported.";
|
||||
RTC_LOG(LS_WARNING) << "More than 2 blocks in packet not supported.";
|
||||
return -1;
|
||||
}
|
||||
// Check that the packet is long enough to contain data in the following
|
||||
// block.
|
||||
if (block_length > payload_data_length - (red_header_length + 1)) {
|
||||
LOG(LS_WARNING) << "Block length longer than packet.";
|
||||
RTC_LOG(LS_WARNING) << "Block length longer than packet.";
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user