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
This commit is contained in:
parent
0ef890a4ba
commit
931e3da8f2
@ -39,13 +39,13 @@ std::string VideoStream::ToString() const {
|
|||||||
ss << ", max_bitrate_bps:" << max_bitrate_bps;
|
ss << ", max_bitrate_bps:" << max_bitrate_bps;
|
||||||
ss << ", max_qp: " << max_qp;
|
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) {
|
for (size_t i = 0; i < temporal_layer_thresholds_bps.size(); ++i) {
|
||||||
ss << temporal_layer_thresholds_bps[i];
|
ss << temporal_layer_thresholds_bps[i];
|
||||||
if (i != temporal_layer_thresholds_bps.size() - 1)
|
if (i != temporal_layer_thresholds_bps.size() - 1)
|
||||||
ss << "}, {";
|
ss << ", ";
|
||||||
}
|
}
|
||||||
ss << '}';
|
ss << ']';
|
||||||
|
|
||||||
ss << '}';
|
ss << '}';
|
||||||
return ss.str();
|
return ss.str();
|
||||||
@ -54,13 +54,13 @@ std::string VideoStream::ToString() const {
|
|||||||
std::string VideoEncoderConfig::ToString() const {
|
std::string VideoEncoderConfig::ToString() const {
|
||||||
std::stringstream ss;
|
std::stringstream ss;
|
||||||
|
|
||||||
ss << "{streams: {";
|
ss << "{streams: [";
|
||||||
for (size_t i = 0; i < streams.size(); ++i) {
|
for (size_t i = 0; i < streams.size(); ++i) {
|
||||||
ss << streams[i].ToString();
|
ss << streams[i].ToString();
|
||||||
if (i != streams.size() - 1)
|
if (i != streams.size() - 1)
|
||||||
ss << "}, {";
|
ss << ", ";
|
||||||
}
|
}
|
||||||
ss << '}';
|
ss << ']';
|
||||||
ss << ", content_type: ";
|
ss << ", content_type: ";
|
||||||
switch (content_type) {
|
switch (content_type) {
|
||||||
case kRealtimeVideo:
|
case kRealtimeVideo:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user