b=943461 don't move messages from mCurrentTaskMessageQueue after it has been emptied r=roc

--HG--
extra : transplant_source : a%27%91%24%A5%1Fe%82%B5%5B%82%AF%17%1A%BA%D8%9DRai
This commit is contained in:
Karl Tomlinson 2014-01-08 16:58:14 +13:00
parent 015174ff82
commit a54f7ad79d

View File

@ -1543,7 +1543,7 @@ MediaStreamGraphImpl::RunInStableState()
controlMessagesToRunDuringShutdown.MoveElementsFrom(mb.mMessages);
}
mMessageQueue.Clear();
controlMessagesToRunDuringShutdown.MoveElementsFrom(mCurrentTaskMessageQueue);
MOZ_ASSERT(mCurrentTaskMessageQueue.IsEmpty());
// Stop MediaStreamGraph threads. Do not clear gGraph since
// we have outstanding DOM objects that may need it.
mLifecycleState = LIFECYCLE_WAITING_FOR_THREAD_SHUTDOWN;