mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-20 14:17:30 +09:00
Bug 1452416 - Release GraphDrivers outside of StableState runnable to avoid spinning the event queue. r=smaug, r=padenot, a=RyanVM
--HG-- extra : source : c90ec782d481f05f5848f171a945cfc5bcf5b0ca
This commit is contained in:
parent
e3e79721f6
commit
4f0786ab02
1 changed files with 4 additions and 0 deletions
|
|
@ -1715,6 +1715,10 @@ MediaStreamGraphImpl::RunInStableState(bool aSourceIsMSG)
|
||||||
RefPtr<GraphDriver> driver = CurrentDriver();
|
RefPtr<GraphDriver> driver = CurrentDriver();
|
||||||
MonitorAutoUnlock unlock(mMonitor);
|
MonitorAutoUnlock unlock(mMonitor);
|
||||||
driver->Start();
|
driver->Start();
|
||||||
|
// It's not safe to Shutdown() a thread from StableState, and
|
||||||
|
// releasing this may shutdown a SystemClockDriver thread.
|
||||||
|
// Proxy the release to outside of StableState.
|
||||||
|
NS_ReleaseOnMainThread(driver.forget(), true); // always proxy
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue