Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(738)

Unified Diff: webrtc/config.cc

Issue 2397843005: Add FlexfecReceiveStream. (Closed)
Patch Set: Fix {} consistency in config.cc Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webrtc/config.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/config.cc
diff --git a/webrtc/config.cc b/webrtc/config.cc
index 0331c0a8332977af9ed035cb73ff1c0cef4a51ca..04f6a66935e40ab93f3195eb9fbdf47f2748cdf3 100644
--- a/webrtc/config.cc
+++ b/webrtc/config.cc
@@ -31,6 +31,20 @@ std::string UlpfecConfig::ToString() const {
return ss.str();
}
+std::string FlexfecConfig::ToString() const {
+ std::stringstream ss;
+ ss << "{flexfec_payload_type: " << flexfec_payload_type;
+ ss << ", flexfec_ssrc: " << flexfec_ssrc;
+ ss << ", protected_media_ssrcs: [";
+ size_t i = 0;
+ for (; i + 1 < protected_media_ssrcs.size(); ++i)
+ ss << protected_media_ssrcs[i] << ", ";
+ if (!protected_media_ssrcs.empty())
+ ss << protected_media_ssrcs[i];
+ ss << "]}";
+ return ss.str();
+}
+
std::string RtpExtension::ToString() const {
std::stringstream ss;
ss << "{uri: " << uri;
« no previous file with comments | « webrtc/config.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698