Bug 1289976. Part 8 - Remove the IsShutdown() check from UpdateReadyState(). The callback is disconnected by the watch manager in Shutdown(). r?kaku
MozReview-Commit-ID: xVSWdj1Q0y
--- a/dom/media/MediaDecoder.h
+++ b/dom/media/MediaDecoder.h
@@ -488,19 +488,18 @@ private:
uint32_t aDropped) override
{
GetFrameStatistics().NotifyDecodedFrames(aParsed, aDecoded, aDropped);
}
void UpdateReadyState()
{
MOZ_ASSERT(NS_IsMainThread());
- if (!IsShutdown()) {
- mOwner->UpdateReadyState();
- }
+ MOZ_ASSERT(!IsShutdown());
+ mOwner->UpdateReadyState();
}
virtual MediaDecoderOwner::NextFrameStatus NextFrameStatus() { return mNextFrameStatus; }
virtual MediaDecoderOwner::NextFrameStatus NextFrameBufferedStatus();
// Returns a string describing the state of the media player internal
// data. Used for debugging purposes.
virtual void GetMozDebugReaderData(nsAString& aString) {}