From 931e3da8f232089295134e60b9f7aaffbdad5c48 Mon Sep 17 00:00:00 2001 From: "pbos@webrtc.org" Date: Thu, 6 Nov 2014 09:35:08 +0000 Subject: [PATCH] Log formatting fix for VideoEncoderConfig. R=mflodman@webrtc.org BUG= Review URL: https://webrtc-codereview.appspot.com/30889004 git-svn-id: http://webrtc.googlecode.com/svn/trunk@7648 4adac7df-926f-26a2-2b94-8c16560cd09d --- webrtc/config.cc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/webrtc/config.cc b/webrtc/config.cc index 70bd87068d..357f636704 100644 --- a/webrtc/config.cc +++ b/webrtc/config.cc @@ -39,13 +39,13 @@ std::string VideoStream::ToString() const { ss << ", max_bitrate_bps:" << max_bitrate_bps; ss << ", max_qp: " << max_qp; - ss << ", temporal_layer_thresholds_bps: {"; + ss << ", temporal_layer_thresholds_bps: ["; for (size_t i = 0; i < temporal_layer_thresholds_bps.size(); ++i) { ss << temporal_layer_thresholds_bps[i]; if (i != temporal_layer_thresholds_bps.size() - 1) - ss << "}, {"; + ss << ", "; } - ss << '}'; + ss << ']'; ss << '}'; return ss.str(); @@ -54,13 +54,13 @@ std::string VideoStream::ToString() const { std::string VideoEncoderConfig::ToString() const { std::stringstream ss; - ss << "{streams: {"; + ss << "{streams: ["; for (size_t i = 0; i < streams.size(); ++i) { ss << streams[i].ToString(); if (i != streams.size() - 1) - ss << "}, {"; + ss << ", "; } - ss << '}'; + ss << ']'; ss << ", content_type: "; switch (content_type) { case kRealtimeVideo: