diff --git a/dom/media/MediaDecoder.cpp b/dom/media/MediaDecoder.cpp index 0b711718c737..3cd76b77c532 100644 --- a/dom/media/MediaDecoder.cpp +++ b/dom/media/MediaDecoder.cpp @@ -619,6 +619,8 @@ MediaDecoder::Shutdown() mCDMProxyPromiseHolder.RejectIfExists(true, __func__); #endif + DiscardOngoingSeekIfExists(); + // This changes the decoder state to SHUTDOWN and does other things // necessary to unblock the state machine thread if it's blocked, so // the asynchronous shutdown in nsDestroyStateMachine won't deadlock.