Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mpc-hc/mpc-hc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSpec-Chum <spec-chum@users.sourceforge.net>2010-04-02 23:28:08 +0400
committerSpec-Chum <spec-chum@users.sourceforge.net>2010-04-02 23:28:08 +0400
commit3b4fc12e5cfaa652683f9a3eb3e1bf49870a5ac3 (patch)
treefea1be18b053596fc9819b98f7c5e83ef4a6298e /src/DSUtil/NullRenderers.cpp
parent4af0283e17036049e835c1c2837c0b43c0ac13b6 (diff)
Cosmetic changes to DSUtil (patch by Tetsuo55 - Told you I'd get you coding one day!)
git-svn-id: https://mpc-hc.svn.sourceforge.net/svnroot/mpc-hc/trunk@1775 10f7b99b-c216-0410-bff0-8a66a9350fd8
Diffstat (limited to 'src/DSUtil/NullRenderers.cpp')
-rw-r--r--src/DSUtil/NullRenderers.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/DSUtil/NullRenderers.cpp b/src/DSUtil/NullRenderers.cpp
index 0286bca2b..866c272c3 100644
--- a/src/DSUtil/NullRenderers.cpp
+++ b/src/DSUtil/NullRenderers.cpp
@@ -120,7 +120,7 @@ CNullVideoRendererInputPin::CNullVideoRendererInputPin(CBaseRenderer *pRenderer,
pfDXVA2CreateDirect3DDeviceManager9 = hLib ? (PTR_DXVA2CreateDirect3DDeviceManager9) GetProcAddress (hLib, "DXVA2CreateDirect3DDeviceManager9") : NULL;
pfDXVA2CreateVideoService = hLib ? (PTR_DXVA2CreateVideoService) GetProcAddress (hLib, "DXVA2CreateVideoService") : NULL;
- HRESULT hr;
+
if (hLib != NULL)
{
pfDXVA2CreateDirect3DDeviceManager9 (&m_nResetTocken, &m_pD3DDeviceManager);
@@ -129,6 +129,7 @@ CNullVideoRendererInputPin::CNullVideoRendererInputPin(CBaseRenderer *pRenderer,
// Initialize Device Manager with DX surface
if (m_pD3DDev)
{
+ HRESULT hr;
hr = m_pD3DDeviceManager->ResetDevice (m_pD3DDev, m_nResetTocken);
hr = m_pD3DDeviceManager->OpenDeviceHandle(&m_hDevice);
}