summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpbos@webrtc.org <pbos@webrtc.org>2014-11-06 09:35:08 +0000
committerpbos@webrtc.org <pbos@webrtc.org>2014-11-06 09:35:08 +0000
commit98dd0b827ba88221c3a0f2de6f00266bc8da7266 (patch)
tree652eaaa2df7fd74ebe9b3afc1aa6b678f7b1e9ac
parent3ebce78042e261e510a28ee4b2a64ea3148b6aa5 (diff)
downloadwebrtc-98dd0b827ba88221c3a0f2de6f00266bc8da7266.tar.gz
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/webrtc@7648 4adac7df-926f-26a2-2b94-8c16560cd09d
-rw-r--r--config.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/config.cc b/config.cc
index 70bd8706..357f6367 100644
--- a/config.cc
+++ b/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: