Add commas between codec parameters in VideoReceiveStream logging.

Meaning you'll see "{foo: 1, bar: 2}" instead of "{foo: 1bar: 2}".

Bug: None
Change-Id: I7494ad9ac154c4280036c9ff6cbd0466e2a2e2d5
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/78580
Reviewed-by: Stefan Holmer <stefan@webrtc.org>
Commit-Queue: Taylor <deadbeef@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#30717}
This commit is contained in:
Taylor Brandstetter
2020-03-05 14:23:21 -08:00
committed by Commit Bot
parent c5d8edb322
commit 39be828c84

View File

@ -24,8 +24,13 @@ std::string VideoReceiveStream::Decoder::ToString() const {
ss << "{payload_type: " << payload_type;
ss << ", payload_name: " << video_format.name;
ss << ", codec_params: {";
for (const auto& it : video_format.parameters)
ss << it.first << ": " << it.second;
for (auto it = video_format.parameters.begin();
it != video_format.parameters.end(); ++it) {
if (it != video_format.parameters.begin()) {
ss << ", ";
}
ss << it->first << ": " << it->second;
}
ss << '}';
ss << '}';