зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
9334e84033
Коммит
f2c9b6dc47
|
@ -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__ <<
|
||||
|
|
Загрузка…
Ссылка в новой задаче