mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-25 03:05:34 +00:00
Bug 1286041 - Ignore AudioContext state change to Suspended when in Closed. r=padenot
This commit is contained in:
parent
7c62351e09
commit
2764b5a648
@ -841,6 +841,15 @@ AudioContext::OnStateChanged(void* aPromise, AudioContextState aNewState)
|
||||
return;
|
||||
}
|
||||
|
||||
// This can happen if this is called in reaction to a
|
||||
// MediaStreamGraph shutdown, and a AudioContext was being
|
||||
// suspended at the same time, for example if a page was being
|
||||
// closed.
|
||||
if (mAudioContextState == AudioContextState::Closed &&
|
||||
aNewState == AudioContextState::Suspended) {
|
||||
return;
|
||||
}
|
||||
|
||||
#ifndef WIN32 // Bug 1170547
|
||||
#ifndef XP_MACOSX
|
||||
#ifdef DEBUG
|
||||
|
Loading…
Reference in New Issue
Block a user