Bug 1465617: (Speculative fix because STR are missing) Don't crash if no video send codecs are negotiated. r=mjf

This _might_ be the fix for the nullptr crash in bug 1465617.

Differential Revision: https://phabricator.services.mozilla.com/D3337

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Byron Campen [:bwc] 2018-08-14 14:35:50 +00:00
Родитель 9334e84033
Коммит f2c9b6dc47
1 изменённых файлов: 6 добавлений и 0 удалений

Просмотреть файл

@ -932,6 +932,12 @@ TransceiverImpl::UpdateVideoConduit()
return rv;
}
if (configs.values.empty()) {
MOZ_MTLOG(ML_INFO, mPCHandle << "[" << mMid << "]: " << __FUNCTION__ <<
" No codecs were negotiated (send).");
return NS_OK;
}
auto error = conduit->ConfigureSendMediaCodec(configs.values[0]);
if (error) {
MOZ_MTLOG(ML_ERROR, mPCHandle << "[" << mMid << "]: " << __FUNCTION__ <<