diff options
Diffstat (limited to 'src/filters/renderer')
3 files changed, 3 insertions, 2 deletions
diff --git a/src/filters/renderer/VideoRenderers/DX9AllocatorPresenter.cpp b/src/filters/renderer/VideoRenderers/DX9AllocatorPresenter.cpp index 52472d80f..11b957a4b 100644 --- a/src/filters/renderer/VideoRenderers/DX9AllocatorPresenter.cpp +++ b/src/filters/renderer/VideoRenderers/DX9AllocatorPresenter.cpp @@ -1998,6 +1998,7 @@ void CDX9AllocatorPresenter::DrawStats() OffsetRect(&rc, 0, TextHeight);
if (m_pVideoTexture[0] || m_pVideoSurface[0]) {
D3DSURFACE_DESC desc;
+ ZeroMemory(&desc, sizeof(desc));
if (m_pVideoTexture[0]) {
m_pVideoTexture[0]->GetLevelDesc(0, &desc);
} else if (m_pVideoSurface[0]) {
diff --git a/src/filters/renderer/VideoRenderers/EVRAllocatorPresenter.cpp b/src/filters/renderer/VideoRenderers/EVRAllocatorPresenter.cpp index 17b95c366..0eecb345d 100644 --- a/src/filters/renderer/VideoRenderers/EVRAllocatorPresenter.cpp +++ b/src/filters/renderer/VideoRenderers/EVRAllocatorPresenter.cpp @@ -1031,7 +1031,7 @@ HRESULT CEVRAllocatorPresenter::RenegotiateMediaType() hr = m_pMixer->SetOutputType(0, pType, MFT_SET_TYPE_TEST_ONLY);
}
- int Merit;
+ int Merit = 0;
if (SUCCEEDED(hr)) {
hr = GetMediaTypeMerit(pType, &Merit);
}
diff --git a/src/filters/renderer/VideoRenderers/SyncRenderer.cpp b/src/filters/renderer/VideoRenderers/SyncRenderer.cpp index fc2f5f7a2..becb2b37c 100644 --- a/src/filters/renderer/VideoRenderers/SyncRenderer.cpp +++ b/src/filters/renderer/VideoRenderers/SyncRenderer.cpp @@ -680,12 +680,12 @@ HRESULT CBaseAP::ResetDXDevice(CString& _Error) std::vector<CComPtr<IPin>> decoderOutput;
std::vector<CComPtr<IPin>> rendererInput;
FILTER_INFO filterInfo;
+ ZeroMemory(&filterInfo, sizeof(filterInfo));
bool disconnected = FALSE;
// Disconnect all pins to release video memory resources
if (m_pD3DDev) {
- ZeroMemory(&filterInfo, sizeof(filterInfo));
m_pOuterEVR->QueryFilterInfo(&filterInfo); // This addref's the pGraph member
if (SUCCEEDED(m_pOuterEVR->EnumPins(&rendererInputEnum))) {
CComPtr<IPin> input;
|