Chromium Code Reviews| Index: webrtc/call/flexfec_receive_stream_impl.cc |
| diff --git a/webrtc/call/flexfec_receive_stream_impl.cc b/webrtc/call/flexfec_receive_stream_impl.cc |
| index 13390a12c06ce891c9f85248fb474c00aea39fea..95bcfc14dc1de9bc2cedee29fff729e314c6ba5a 100644 |
| --- a/webrtc/call/flexfec_receive_stream_impl.cc |
| +++ b/webrtc/call/flexfec_receive_stream_impl.cc |
| @@ -46,6 +46,19 @@ std::string FlexfecReceiveStream::Config::ToString() const { |
| return ss.str(); |
| } |
| +bool FlexfecReceiveStream::Config::IsCompleteAndEnabled() const { |
| + // Check if FlexFEC is enabled. |
| + if (payload_type < 0) |
| + return false; |
| + // Do we have the necessary SSRC information? |
| + if (remote_ssrc == 0) |
|
stefan-webrtc
2017/01/12 14:36:19
Is 0 an invalid ssrc? :)
|
| + return false; |
| + // TODO(brandtr): Update this check when we support multistream protection. |
| + if (protected_media_ssrcs.size() != 1u) |
| + return false; |
| + return true; |
| +} |
| + |
| namespace { |
| // TODO(brandtr): Update this function when we support multistream protection. |