Bug 1000813 - Do nothing in MediaDecoder::NotifyBytesConsumed() when |mShuttingDown| is true. r=cpearce

This commit is contained in:
JW Wang 2014-05-11 19:20:00 -04:00
parent 7444d701c3
commit 4a17ce8532

View File

@ -1019,8 +1019,13 @@ void MediaDecoder::NotifyPrincipalChanged()
void MediaDecoder::NotifyBytesConsumed(int64_t aBytes, int64_t aOffset)
{
MOZ_ASSERT(NS_IsMainThread());
if (mShuttingDown) {
return;
}
ReentrantMonitorAutoEnter mon(GetReentrantMonitor());
NS_ENSURE_TRUE_VOID(mDecoderStateMachine);
MOZ_ASSERT(mDecoderStateMachine);
if (mIgnoreProgressData) {
return;
}