[host] made DXGI ReInitialization more robust on mode changes

DXGI doesn't like to restart too fast, com exceptions are logged and the
duplication device fails to create with an E_ACCESS_DENIED error. Adding
a 200ms sleep between teardown and re-init resolves this issue.
This commit is contained in:
Geoffrey McRae
2017-11-04 04:00:00 +11:00
parent 32d61023e5
commit 9287ec97eb
2 changed files with 46 additions and 20 deletions

View File

@@ -42,6 +42,8 @@ namespace Capture
bool GrabFrame(struct FrameInfo & frame);
private:
bool ReInitialize();
bool m_initialized;
MTMemcpy m_memcpy;
unsigned int m_width;