Convert logs in rtp rtcp module from WEBRTC_TRACE into LOG.
Clean some logs and add asserts in the way. BUG=3153 R=mflodman@webrtc.org, stefan@webrtc.org Review URL: https://webrtc-codereview.appspot.com/11129004 git-svn-id: http://webrtc.googlecode.com/svn/trunk@5861 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
@ -16,20 +16,19 @@
|
||||
#include "webrtc/modules/rtp_rtcp/source/rtp_utility.h"
|
||||
#include "webrtc/system_wrappers/interface/critical_section_wrapper.h"
|
||||
#include "webrtc/system_wrappers/interface/scoped_ptr.h"
|
||||
#include "webrtc/system_wrappers/interface/trace.h"
|
||||
#include "webrtc/system_wrappers/interface/logging.h"
|
||||
|
||||
// RFC 5109
|
||||
namespace webrtc {
|
||||
|
||||
FecReceiver* FecReceiver::Create(int32_t id, RtpData* callback) {
|
||||
return new FecReceiverImpl(id, callback);
|
||||
FecReceiver* FecReceiver::Create(RtpData* callback) {
|
||||
return new FecReceiverImpl(callback);
|
||||
}
|
||||
|
||||
FecReceiverImpl::FecReceiverImpl(const int32_t id, RtpData* callback)
|
||||
: id_(id),
|
||||
crit_sect_(CriticalSectionWrapper::CreateCriticalSection()),
|
||||
FecReceiverImpl::FecReceiverImpl(RtpData* callback)
|
||||
: crit_sect_(CriticalSectionWrapper::CreateCriticalSection()),
|
||||
recovered_packet_callback_(callback),
|
||||
fec_(new ForwardErrorCorrection(id)) {}
|
||||
fec_(new ForwardErrorCorrection()) {}
|
||||
|
||||
FecReceiverImpl::~FecReceiverImpl() {
|
||||
while (!received_packet_list_.empty()) {
|
||||
@ -103,8 +102,7 @@ int32_t FecReceiverImpl::AddReceivedRedPacket(
|
||||
if (timestamp_offset != 0) {
|
||||
// |timestampOffset| should be 0. However, it's possible this is the first
|
||||
// location a corrupt payload can be caught, so don't assert.
|
||||
WEBRTC_TRACE(kTraceWarning, kTraceRtpRtcp, id_,
|
||||
"Corrupt payload found in %s", __FUNCTION__);
|
||||
LOG(LS_WARNING) << "Corrupt payload found.";
|
||||
delete received_packet;
|
||||
return -1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user