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
This commit is contained in:
asapersson@webrtc.org 2014-04-25 07:02:52 +00:00
parent 2b93402e36
commit 46106f2a05
2 changed files with 10 additions and 9 deletions

View File

@ -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);

View File

@ -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<int>(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<int>(codec.maxFramerate)
<< ", max qp " << codec.qpMax
<< ", number of streams "
<< codec.numberOfSimulcastStreams;
<< static_cast<int>(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<int>(
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<int>(
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;
}
}
}