From 46106f2a050ad939a0a49dcbcfe53173943f5adf Mon Sep 17 00:00:00 2001 From: "asapersson@webrtc.org" Date: Fri, 25 Apr 2014 07:02:52 +0000 Subject: [PATCH] Casting char to int in logs. BUG=3153 R=mflodman@webrtc.org Review URL: https://webrtc-codereview.appspot.com/12369006 git-svn-id: http://webrtc.googlecode.com/svn/trunk@5979 4adac7df-926f-26a2-2b94-8c16560cd09d --- webrtc/video_engine/vie_capture_impl.cc | 2 +- webrtc/video_engine/vie_codec_impl.cc | 17 +++++++++-------- 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/webrtc/video_engine/vie_capture_impl.cc b/webrtc/video_engine/vie_capture_impl.cc index c4f434463d..9581fb7f2c 100644 --- a/webrtc/video_engine/vie_capture_impl.cc +++ b/webrtc/video_engine/vie_capture_impl.cc @@ -213,7 +213,7 @@ int ViECaptureImpl::DisconnectCaptureDevice(const int video_channel) { int ViECaptureImpl::StartCapture(const int capture_id, const CaptureCapability& capture_capability) { - LOG(LS_ERROR) << "StartCapture " << capture_id; + LOG(LS_INFO) << "StartCapture " << capture_id; ViEInputManagerScoped is(*(shared_data_->input_manager())); ViECapturer* vie_capture = is.Capture(capture_id); diff --git a/webrtc/video_engine/vie_codec_impl.cc b/webrtc/video_engine/vie_codec_impl.cc index d2aaab9ef8..9ea3c9c09a 100644 --- a/webrtc/video_engine/vie_codec_impl.cc +++ b/webrtc/video_engine/vie_codec_impl.cc @@ -29,19 +29,19 @@ namespace webrtc { static void LogCodec(const VideoCodec& codec) { LOG(LS_INFO) << "CodecType " << codec.codecType - << ", pl_type " << codec.plType + << ", pl_type " << static_cast(codec.plType) << ", resolution " << codec.width << " x " << codec.height << ", start br " << codec.startBitrate << ", min br " << codec.minBitrate << ", max br " << codec.maxBitrate - << ", max fpr " << codec.maxFramerate + << ", max fps " << static_cast(codec.maxFramerate) << ", max qp " << codec.qpMax << ", number of streams " - << codec.numberOfSimulcastStreams; + << static_cast(codec.numberOfSimulcastStreams); if (codec.codecType == kVideoCodecVP8) { LOG(LS_INFO) << "VP8 specific settings"; - LOG(LS_INFO) << "pivtureLossIndicationOn " + LOG(LS_INFO) << "pictureLossIndicationOn " << codec.codecSpecific.VP8.pictureLossIndicationOn << ", feedbackModeOn " << codec.codecSpecific.VP8.feedbackModeOn @@ -49,15 +49,17 @@ static void LogCodec(const VideoCodec& codec) { << codec.codecSpecific.VP8.complexity << ", resilience " << codec.codecSpecific.VP8.resilience - << ", numberOfTeporalLayers " - << codec.codecSpecific.VP8.numberOfTemporalLayers + << ", numberOfTemporalLayers " + << static_cast( + codec.codecSpecific.VP8.numberOfTemporalLayers) << ", keyFrameinterval " << codec.codecSpecific.VP8.keyFrameInterval; for (int idx = 0; idx < codec.numberOfSimulcastStreams; ++idx) { LOG(LS_INFO) << "Stream " << codec.simulcastStream[idx].width << " x " << codec.simulcastStream[idx].height; LOG(LS_INFO) << "Temporal layers " - << codec.simulcastStream[idx].numberOfTemporalLayers + << static_cast( + codec.simulcastStream[idx].numberOfTemporalLayers) << ", min br " << codec.simulcastStream[idx].minBitrate << ", target br " @@ -66,7 +68,6 @@ static void LogCodec(const VideoCodec& codec) { << codec.simulcastStream[idx].maxBitrate << ", qp max " << codec.simulcastStream[idx].qpMax; - } } }