diff --git a/dom/media/hls/HLSDecoder.cpp b/dom/media/hls/HLSDecoder.cpp index 0863ebf950fe..afa22e66d5a5 100644 --- a/dom/media/hls/HLSDecoder.cpp +++ b/dom/media/hls/HLSDecoder.cpp @@ -39,10 +39,8 @@ HLSDecoder::CreateStateMachine() ChannelMediaDecoder* HLSDecoder::Clone(MediaDecoderInit& aInit) { - if (!IsEnabled()) { - return nullptr; - } - return new HLSDecoder(aInit); + MOZ_CRASH("Clone is not supported"); + return nullptr; } bool