mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1039884 - Let ControlMessages added by runnables in stable state be run during shutdown. r=roc r=karlt
This commit is contained in:
parent
215c9480ef
commit
759638e212
@ -1713,9 +1713,6 @@ MediaStreamGraphImpl::RunInStableState(bool aSourceIsMSG)
|
||||
mPostedRunInStableState = false;
|
||||
}
|
||||
|
||||
for (uint32_t i = 0; i < runnables.Length(); ++i) {
|
||||
runnables[i]->Run();
|
||||
}
|
||||
for (uint32_t i = 0; i < controlMessagesToRunDuringShutdown.Length(); ++i) {
|
||||
controlMessagesToRunDuringShutdown[i]->RunDuringShutdown();
|
||||
}
|
||||
@ -1724,6 +1721,10 @@ MediaStreamGraphImpl::RunInStableState(bool aSourceIsMSG)
|
||||
mCanRunMessagesSynchronously = mDetectedNotRunning &&
|
||||
mLifecycleState >= LIFECYCLE_WAITING_FOR_THREAD_SHUTDOWN;
|
||||
#endif
|
||||
|
||||
for (uint32_t i = 0; i < runnables.Length(); ++i) {
|
||||
runnables[i]->Run();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user