Bug 1410022 - Remove redundant PDM::Supports check caused by bug 1407919 part6. r=gerald

MozReview-Commit-ID: EoAARcmhjlV

--HG--
extra : rebase_source : 560d91e004f0787278e7e3181e58c953c27368e5
This commit is contained in:
James Cheng 2017-10-19 18:03:09 +08:00
Родитель ac57f6f7df
Коммит bcfbcfbc4a
1 изменённых файлов: 6 добавлений и 5 удалений

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

@ -58,11 +58,12 @@ WebMDecoder::IsSupportedType(const MediaContainerType& aContainerType)
uint8_t bitDepth = 0;
if (ExtractVPXCodecDetails(codec, profile, level, bitDepth)) {
trackInfo->GetAsVideoInfo()->mBitDepth = bitDepth;
}
// Verify that we have a PDM that supports this bit depth.
RefPtr<PDMFactory> platform = new PDMFactory();
if (!platform->Supports(*trackInfo, nullptr)) {
return false;
// Verify that we have a PDM that supports this bit depth.
RefPtr<PDMFactory> platform = new PDMFactory();
if (!platform->Supports(*trackInfo, nullptr)) {
return false;
}
}
continue;
}