mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1000813 - Do nothing in MediaDecoder::NotifyBytesConsumed() when |mShuttingDown| is true. r=cpearce
This commit is contained in:
parent
7444d701c3
commit
4a17ce8532
@ -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…
Reference in New Issue
Block a user