Bug 1372501 - Add checking whether HLS mimetype is supported in DecoderTraits::IsSupportedInVideoDocument. r?jya
MozReview-Commit-ID: I3THa5v1DAf
--- a/dom/media/DecoderTraits.cpp
+++ b/dom/media/DecoderTraits.cpp
@@ -409,12 +409,15 @@ bool DecoderTraits::IsSupportedInVideoDo
(MediaDecoder::IsAndroidMediaPluginEnabled() && IsAndroidMediaType(*type)) ||
#endif
#ifdef MOZ_FMP4
MP4Decoder::IsSupportedType(*type, /* DecoderDoctorDiagnostics* */ nullptr) ||
#endif
MP3Decoder::IsSupportedType(*type) ||
ADTSDecoder::IsSupportedType(*type) ||
FlacDecoder::IsSupportedType(*type) ||
+#ifdef MOZ_ANDROID_HLS_SUPPORT
+ HLSDecoder::IsSupportedType(*type) ||
+#endif
false;
}
} // namespace mozilla