Attempt to workaround some stop hangs by using MsgWait instead of Wait. change order of dsp / video shutdown. some comments.

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2379 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
hrydgard
2009-02-22 22:49:42 +00:00
parent a32e29aaa5
commit 68f5cc1873
9 changed files with 89 additions and 44 deletions

View File

@ -208,17 +208,6 @@ void CPluginManager::ShutdownPlugins()
//m_wiimote[i] = NULL;
}
if (m_video)
{
m_video->Shutdown();
// With this option, this is done on boot instead
#ifndef SETUP_DONT_FREE_PLUGIN_ON_STOP
delete m_video;
m_video = NULL;
#endif
}
if (m_dsp)
{
m_dsp->Shutdown();
@ -228,6 +217,16 @@ void CPluginManager::ShutdownPlugins()
m_dsp = NULL;
#endif
}
if (m_video)
{
m_video->Shutdown();
// With this option, this is done on boot instead
#ifndef SETUP_DONT_FREE_PLUGIN_ON_STOP
delete m_video;
m_video = NULL;
#endif
}
}
//////////////////////////////////////////////