diff --git a/dom/media/MediaDecoder.cpp b/dom/media/MediaDecoder.cpp index 7b8b4b7eeed4..0b711718c737 100644 --- a/dom/media/MediaDecoder.cpp +++ b/dom/media/MediaDecoder.cpp @@ -1862,9 +1862,8 @@ void MediaDecoder::ConstructMediaTracks() { MOZ_ASSERT(NS_IsMainThread()); - MOZ_ASSERT(!IsShutdown()); - if (mMediaTracksConstructed || !mInfo) { + if (IsShutdown() || mMediaTracksConstructed || !mInfo) { return; }