pcsx2 gui: do not call swap iso when isofile did not change.

Note: the code avoids some locking which turn into deadlock with GSOpen1 plugins.


git-svn-id: http://pcsx2.googlecode.com/svn/trunk@4273 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
gregory.hainaut@gmail.com 2011-01-29 19:48:44 +00:00
parent 3f1e272d27
commit 1205f01700
1 changed files with 10 additions and 0 deletions

View File

@ -61,6 +61,16 @@ void RecentIsoManager::OnChangedSelection( wxCommandEvent& evt )
return;
}
// Actually there is no change on the selection so the event can be skip
// Note: It also avoids a deadlock which appears when the core thread is already paused
// and ScopedCoreThreadPopup try to stop the thread (GSOpen1 code path)
if( (g_Conf->CdvdSource == CDVDsrc_Iso) && (m_Items[i].Filename == g_Conf->CurrentIso) )
{
evt.Skip();
return;
}
m_cursel = i;
ScopedCoreThreadPopup stopped_core;