Switch to base/logging.h in neteq_impl.cc
This change includes base/logging.h instead of the old and deprecated system_wrappers/interface/logging.h. This requires some changes of the actual logging invocations. For reference the following regexps where used (in Eclipse) for a few of the replacements: find: LOG_FERR1\(\s*([^,]*),\s*([^,]*),\s*(.*)\); replace: LOG($1) << "$2 " << $3; find: LOG_FERR2\(\s*([^,]*),\s*([^,]*),\s*([^,]*),\s*(.*)\); replace: LOG($1) << "$2 " << $3 << " " << $4; BUG=4735 R=minyue@webrtc.org Review URL: https://webrtc-codereview.appspot.com/50229004 . Cr-Commit-Position: refs/heads/master@{#9669}
This commit is contained in:
@ -13,6 +13,7 @@
|
||||
#include <assert.h>
|
||||
#include <utility> // pair
|
||||
|
||||
#include "webrtc/base/logging.h"
|
||||
#include "webrtc/modules/audio_coding/codecs/audio_decoder.h"
|
||||
|
||||
namespace webrtc {
|
||||
@ -249,6 +250,8 @@ int DecoderDatabase::CheckPayloadTypes(const PacketList& packet_list) const {
|
||||
for (it = packet_list.begin(); it != packet_list.end(); ++it) {
|
||||
if (decoders_.find((*it)->header.payloadType) == decoders_.end()) {
|
||||
// Payload type is not found.
|
||||
LOG(LS_WARNING) << "CheckPayloadTypes: unknown RTP payload type "
|
||||
<< static_cast<int>((*it)->header.payloadType);
|
||||
return kDecoderNotFound;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user