From 0df371549fae53798be39089cfcb64a9380d2f49 Mon Sep 17 00:00:00 2001 From: "asapersson@webrtc.org" Date: Wed, 10 Dec 2014 10:30:45 +0000 Subject: [PATCH] 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 --- webrtc/video_engine/vie_channel.cc | 4 ++-- webrtc/video_engine/vie_codec_impl.cc | 2 +- webrtc/video_engine/vie_rtp_rtcp_impl.cc | 8 ++++---- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/webrtc/video_engine/vie_channel.cc b/webrtc/video_engine/vie_channel.cc index 7b65c762c8..be6a2d1376 100644 --- a/webrtc/video_engine/vie_channel.cc +++ b/webrtc/video_engine/vie_channel.cc @@ -1800,8 +1800,8 @@ int32_t ViEChannel::OnInitializeDecoder( const int frequency, const uint8_t channels, const uint32_t rate) { - LOG(LS_INFO) << "OnInitializeDecoder " << payload_type << " " - << payload_name; + LOG(LS_INFO) << "OnInitializeDecoder " << static_cast(payload_type) + << " " << payload_name; vcm_->ResetDecoder(); CriticalSectionScoped cs(callback_cs_.get()); diff --git a/webrtc/video_engine/vie_codec_impl.cc b/webrtc/video_engine/vie_codec_impl.cc index 0ef039dbcd..d4d7f7f2ec 100644 --- a/webrtc/video_engine/vie_codec_impl.cc +++ b/webrtc/video_engine/vie_codec_impl.cc @@ -277,7 +277,7 @@ int ViECodecImpl::SetReceiveCodec(const int video_channel, const VideoCodec& video_codec) { LOG(LS_INFO) << "SetReceiveCodec for channel " << video_channel; LOG(LS_INFO) << "Codec type " << video_codec.codecType - << ", payload type " << video_codec.plType; + << ", payload type " << static_cast(video_codec.plType); if (CodecValid(video_codec) == false) { shared_data_->SetLastError(kViECodecInvalidCodec); diff --git a/webrtc/video_engine/vie_rtp_rtcp_impl.cc b/webrtc/video_engine/vie_rtp_rtcp_impl.cc index 853d778168..617d6ea5ea 100644 --- a/webrtc/video_engine/vie_rtp_rtcp_impl.cc +++ b/webrtc/video_engine/vie_rtp_rtcp_impl.cc @@ -225,7 +225,7 @@ int ViERTP_RTCPImpl::SetPadWithRedundantPayloads(int video_channel, int ViERTP_RTCPImpl::SetRtxReceivePayloadType(const int video_channel, const uint8_t payload_type) { LOG_F(LS_INFO) << "channel: " << video_channel - << " payload_type: " << static_cast(payload_type); + << " payload_type: " << static_cast(payload_type); ViEChannelManagerScoped cs(*(shared_data_->channel_manager())); ViEChannel* vie_channel = cs.Channel(video_channel); if (!vie_channel) { @@ -588,7 +588,7 @@ int ViERTP_RTCPImpl::SetReceiveTimestampOffsetStatus(int video_channel, bool enable, int id) { LOG_F(LS_INFO) << "channel: " << video_channel - << "enable: " << (enable ? "on" : "off") << " id: " << id; + << " enable: " << (enable ? "on" : "off") << " id: " << id; ViEChannelManagerScoped cs(*(shared_data_->channel_manager())); ViEChannel* vie_channel = cs.Channel(video_channel); if (!vie_channel) { @@ -606,7 +606,7 @@ int ViERTP_RTCPImpl::SetSendAbsoluteSendTimeStatus(int video_channel, bool enable, int id) { LOG_F(LS_INFO) << "channel: " << video_channel - << "enable: " << (enable ? "on" : "off") << " id: " << id; + << " enable: " << (enable ? "on" : "off") << " id: " << id; ViEChannelManagerScoped cs(*(shared_data_->channel_manager())); ViEChannel* vie_channel = cs.Channel(video_channel); @@ -625,7 +625,7 @@ int ViERTP_RTCPImpl::SetReceiveAbsoluteSendTimeStatus(int video_channel, bool enable, int id) { LOG_F(LS_INFO) << "channel: " << video_channel - << "enable: " << (enable ? "on" : "off") << " id: " << id; + << " enable: " << (enable ? "on" : "off") << " id: " << id; ViEChannelManagerScoped cs(*(shared_data_->channel_manager())); ViEChannel* vie_channel = cs.Channel(video_channel); if (!vie_channel) {