diff --git a/dom/media/MediaDecoder.cpp b/dom/media/MediaDecoder.cpp index 6b0acad44c0d..ba7bb30e86fd 100644 --- a/dom/media/MediaDecoder.cpp +++ b/dom/media/MediaDecoder.cpp @@ -976,12 +976,12 @@ void MediaDecoder::NotifyPrincipalChanged() void MediaDecoder::NotifyBytesConsumed(int64_t aBytes, int64_t aOffset) { MOZ_ASSERT(NS_IsMainThread()); - MOZ_ASSERT(mDecoderStateMachine); if (mShuttingDown || mIgnoreProgressData) { return; } + MOZ_ASSERT(mDecoderStateMachine); ReentrantMonitorAutoEnter mon(GetReentrantMonitor()); if (aOffset >= mDecoderPosition) { mPlaybackStatistics->AddBytes(aBytes);