mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-28 05:10:49 +00:00
Bug 1000813 - Do nothing in MediaDecoder::NotifyBytesConsumed() when |mShuttingDown| is true. r=cpearce
This commit is contained in:
parent
5acda6875e
commit
32896fdda1
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user