Bug 1401922 - P2. Only set error when non handled. r=alwu

MozReview-Commit-ID: CF2Iw0i0nD8

--HG--
extra : rebase_source : d95ae83f8e426593200cd15b3ea7d6fd19da3ec8
This commit is contained in:
Jean-Yves Avenard 2017-09-21 13:29:54 +02:00
Родитель ac7ed4578a
Коммит 2cd8f30633
1 изменённых файлов: 1 добавлений и 2 удалений

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

@ -297,8 +297,7 @@ PDMFactory::CreateDecoderWithPDM(PlatformDecoderModule* aPDM,
// or there wasn't enough AVCC data to do so. Otherwise, there was some // or there wasn't enough AVCC data to do so. Otherwise, there was some
// problem, for example WMF DLLs were missing. // problem, for example WMF DLLs were missing.
m = h.forget(); m = h.forget();
} } else if (aParams.mError) {
if (NS_FAILED(result) && aParams.mError) {
*aParams.mError = result; *aParams.mError = result;
} }
} else { } else {