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

Unified Diff: webrtc/config.cc

Issue 2621573002: Remove FlexfecConfig and replace with specific struct in VideoSendStream. (Closed)
Patch Set: Rebase. Created 3 years, 11 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') | webrtc/media/engine/webrtcvideoengine2.cc » ('j') | 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 cb6dcb24a162c1c78025a4174673e99a8a04ec1a..6ffd1c3fd1563f2d50dd0462c0117b61ea591f3e 100644
--- a/webrtc/config.cc
+++ b/webrtc/config.cc
@@ -37,44 +37,6 @@ bool UlpfecConfig::operator==(const UlpfecConfig& other) const {
red_rtx_payload_type == other.red_rtx_payload_type;
}
-FlexfecConfig::FlexfecConfig()
- : flexfec_payload_type(-1), flexfec_ssrc(0), protected_media_ssrcs() {}
-
-FlexfecConfig::~FlexfecConfig() = default;
-
-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();
-}
-
-bool FlexfecConfig::IsCompleteAndEnabled() const {
- // Check if FlexFEC is enabled.
- if (flexfec_payload_type < 0)
- return false;
- // Do we have the necessary SSRC information?
- if (flexfec_ssrc == 0)
- return false;
- // TODO(brandtr): Update this check when we support multistream protection.
- if (protected_media_ssrcs.size() != 1u)
- return false;
- return true;
-}
-
-bool FlexfecConfig::operator==(const FlexfecConfig& other) const {
- return flexfec_payload_type == other.flexfec_payload_type &&
- flexfec_ssrc == other.flexfec_ssrc &&
- protected_media_ssrcs == other.protected_media_ssrcs;
-}
-
std::string RtpExtension::ToString() const {
std::stringstream ss;
ss << "{uri: " << uri;
« no previous file with comments | « webrtc/config.h ('k') | webrtc/media/engine/webrtcvideoengine2.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698