Merging definitions of IsSctp.

Cr-Commit-Position: refs/heads/master@{#8482}
git-svn-id: http://webrtc.googlecode.com/svn/trunk@8482 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
lally@webrtc.org 2015-02-24 20:19:16 +00:00
parent 12aa8a68f9
commit 9616196c38

View File

@ -1827,7 +1827,8 @@ bool IsRtp(const std::string& protocol) {
bool IsDtlsSctp(const std::string& protocol) {
// This intentionally excludes "SCTP" and "SCTP/DTLS".
return protocol.find(cricket::kMediaProtocolDtlsSctp) != std::string::npos;
return protocol.find(cricket::kMediaProtocolDtlsSctp) != std::string::npos
|| protocol.find(cricket::kMediaProtocolUdpDtlsSctp) != std::string::npos;
}
bool ParseSessionDescription(const std::string& message, size_t* pos,