Cast payload type to int in logs.

R=stefan@webrtc.org

Review URL: https://webrtc-codereview.appspot.com/29199004

git-svn-id: http://webrtc.googlecode.com/svn/trunk@7861 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
asapersson@webrtc.org
2014-12-10 10:30:45 +00:00
parent a85307737c
commit 0df371549f
3 changed files with 7 additions and 7 deletions

View File

@ -1800,8 +1800,8 @@ int32_t ViEChannel::OnInitializeDecoder(
const int frequency, const int frequency,
const uint8_t channels, const uint8_t channels,
const uint32_t rate) { const uint32_t rate) {
LOG(LS_INFO) << "OnInitializeDecoder " << payload_type << " " LOG(LS_INFO) << "OnInitializeDecoder " << static_cast<int>(payload_type)
<< payload_name; << " " << payload_name;
vcm_->ResetDecoder(); vcm_->ResetDecoder();
CriticalSectionScoped cs(callback_cs_.get()); CriticalSectionScoped cs(callback_cs_.get());

View File

@ -277,7 +277,7 @@ int ViECodecImpl::SetReceiveCodec(const int video_channel,
const VideoCodec& video_codec) { const VideoCodec& video_codec) {
LOG(LS_INFO) << "SetReceiveCodec for channel " << video_channel; LOG(LS_INFO) << "SetReceiveCodec for channel " << video_channel;
LOG(LS_INFO) << "Codec type " << video_codec.codecType LOG(LS_INFO) << "Codec type " << video_codec.codecType
<< ", payload type " << video_codec.plType; << ", payload type " << static_cast<int>(video_codec.plType);
if (CodecValid(video_codec) == false) { if (CodecValid(video_codec) == false) {
shared_data_->SetLastError(kViECodecInvalidCodec); shared_data_->SetLastError(kViECodecInvalidCodec);