Skip to content

Commit

Permalink
MP1-4781V7 : madVR V310 (Added back lock)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastiii committed Aug 15, 2017
1 parent a63ffed commit 8f075f4
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions DirectShowFilters/DirectShowHelper/source/MadPresenter.cpp
Expand Up @@ -596,7 +596,7 @@ HRESULT MPMadPresenter::ClearBackground(LPCSTR name, REFERENCE_TIME frameStart,
}

// Lock madVR thread while Shutdown()
//CAutoLock lock(&m_dsLock);
CAutoLock lock(&m_dsLock);

WORD videoHeight = (WORD)activeVideoRect->bottom - (WORD)activeVideoRect->top;
WORD videoWidth = (WORD)activeVideoRect->right - (WORD)activeVideoRect->left;
Expand Down Expand Up @@ -694,7 +694,7 @@ HRESULT MPMadPresenter::RenderOsd(LPCSTR name, REFERENCE_TIME frameStart, RECT*
}

// Lock madVR thread while Shutdown()
//CAutoLock lock(&m_dsLock);
CAutoLock lock(&m_dsLock);

WORD videoHeight = (WORD)activeVideoRect->bottom - (WORD)activeVideoRect->top;
WORD videoWidth = (WORD)activeVideoRect->right - (WORD)activeVideoRect->left;
Expand Down Expand Up @@ -993,7 +993,7 @@ HRESULT MPMadPresenter::SetDeviceOsd(IDirect3DDevice9* pD3DDev)
}

// Lock madVR thread while Shutdown()
//CAutoLock lock(&m_dsLock);
CAutoLock lock(&m_dsLock);

//CAutoLock cAutoLock(this);
if (!pD3DDev)
Expand All @@ -1018,7 +1018,7 @@ HRESULT MPMadPresenter::SetDevice(IDirect3DDevice9* pD3DDev)
}

// Lock madVR thread while Shutdown()
//CAutoLock lock(&m_dsLock);
CAutoLock lock(&m_dsLock);

CAutoLock cAutoLock(this);

Expand Down Expand Up @@ -1084,7 +1084,7 @@ HRESULT MPMadPresenter::RenderEx3(REFERENCE_TIME rtStart, REFERENCE_TIME rtStop,
}

// Lock madVR thread while Shutdown()
//CAutoLock lock(&m_dsLock);
CAutoLock lock(&m_dsLock);

CAutoLock cAutoLock(this);

Expand Down

0 comments on commit 8f075f4

Please sign in to comment.