Update libjingle to 53856368.
R=mallinath@webrtc.org Review URL: https://webrtc-codereview.appspot.com/2366004 git-svn-id: http://webrtc.googlecode.com/svn/trunk@4941 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
@@ -599,6 +599,7 @@ static bool UpdateCryptoParamsForBundle(const ContentGroup& bundle_group,
|
||||
return false;
|
||||
}
|
||||
|
||||
bool common_cryptos_needed = false;
|
||||
// Get the common cryptos.
|
||||
const ContentNames& content_names = bundle_group.content_names();
|
||||
CryptoParamsVec common_cryptos;
|
||||
@@ -607,6 +608,11 @@ static bool UpdateCryptoParamsForBundle(const ContentGroup& bundle_group,
|
||||
if (!IsRtpContent(sdesc, *it)) {
|
||||
continue;
|
||||
}
|
||||
// The common cryptos are needed if any of the content does not have DTLS
|
||||
// enabled.
|
||||
if (!sdesc->GetTransportInfoByName(*it)->description.secure()) {
|
||||
common_cryptos_needed = true;
|
||||
}
|
||||
if (it == content_names.begin()) {
|
||||
// Initial the common_cryptos with the first content in the bundle group.
|
||||
if (!GetCryptosByName(sdesc, *it, &common_cryptos)) {
|
||||
@@ -625,7 +631,7 @@ static bool UpdateCryptoParamsForBundle(const ContentGroup& bundle_group,
|
||||
}
|
||||
}
|
||||
|
||||
if (common_cryptos.empty()) {
|
||||
if (common_cryptos.empty() && common_cryptos_needed) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user