mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-01 06:35:42 +00:00
Bug 968016 - Wait until decode has finished before releasing resources when decoder becomes dormant. r=kinetik
This commit is contained in:
parent
264b28d651
commit
dbd3c0555b
@ -1968,6 +1968,8 @@ nsresult MediaDecoderStateMachine::RunStateMachine()
|
||||
mPendingWakeDecoder = nullptr;
|
||||
{
|
||||
ReentrantMonitorAutoExit exitMon(mDecoder->GetReentrantMonitor());
|
||||
// Wait for the thread decoding, if any, to exit.
|
||||
mDecodeTaskQueue->AwaitIdle();
|
||||
mReader->ReleaseMediaResources();
|
||||
}
|
||||
return NS_OK;
|
||||
|
Loading…
Reference in New Issue
Block a user