Bug 1857380 - return type should be HRESULT. r=jrmuizel

Differential Revision: https://phabricator.services.mozilla.com/D190244
This commit is contained in:
alwu 2023-10-06 02:10:02 +00:00
parent 1808a9d2e3
commit ea0fd9af2e

View File

@ -248,8 +248,8 @@ HRESULT WMFDecoderModule::CreateMFTDecoder(const WMFStreamType& aType,
if (!WMFDecoderModule::IsHEVCSupported() || !sDXVAEnabled) {
return E_FAIL;
}
return SUCCEEDED(aDecoder->Create(
MFT_CATEGORY_VIDEO_DECODER, MFVideoFormat_HEVC, MFVideoFormat_NV12));
return aDecoder->Create(MFT_CATEGORY_VIDEO_DECODER, MFVideoFormat_HEVC,
MFVideoFormat_NV12);
case WMFStreamType::MP3:
return aDecoder->Create(CLSID_CMP3DecMediaObject);
case WMFStreamType::AAC: