Bug 1377370. P2 - simplify HLSDecoder::Clone() for HLSResource doesn't support clone at all.
MozReview-Commit-ID: FxebHdK4EmM
--- a/dom/media/hls/HLSDecoder.cpp
+++ b/dom/media/hls/HLSDecoder.cpp
@@ -34,20 +34,18 @@ HLSDecoder::CreateStateMachine()
GetVideoFrameContainer());
return new MediaDecoderStateMachine(this, mReader);
}
ChannelMediaDecoder*
HLSDecoder::Clone(MediaDecoderInit& aInit)
{
- if (!IsEnabled()) {
- return nullptr;
- }
- return new HLSDecoder(aInit);
+ MOZ_CRASH("Clone is not supported");
+ return nullptr;
}
bool
HLSDecoder::IsEnabled()
{
return MediaPrefs::HLSEnabled() && (jni::GetAPIVersion() >= 16);
}