diff --git a/talk/app/webrtc/webrtcsdp.cc b/talk/app/webrtc/webrtcsdp.cc index b2b33fa27..0dcde1d2d 100644 --- a/talk/app/webrtc/webrtcsdp.cc +++ b/talk/app/webrtc/webrtcsdp.cc @@ -336,6 +336,8 @@ static bool ParseDtlsSetup(const std::string& line, cricket::ConnectionRole* role, SdpParseError* error); +static bool IsSctp(const std::string& protocol); + // Helper functions // Below ParseFailed*** functions output the line that caused the parsing @@ -1185,6 +1187,11 @@ bool ParseExtmap(const std::string& line, RtpHeaderExtension* extmap, return true; } +static bool IsSctp(const std::string& protocol) { + return protocol == cricket::kMediaProtocolDtlsSctp + || protocol == cricket::kMediaProtocolUdpDtlsSctp; +} + void BuildMediaDescription(const ContentInfo* content_info, const TransportInfo* transport_info, const MediaType media_type,