diff options
author | Aleksoid <aleksoid@users.sourceforge.net> | 2011-11-09 07:21:41 +0400 |
---|---|---|
committer | Aleksoid <aleksoid@users.sourceforge.net> | 2011-11-09 07:21:41 +0400 |
commit | aae4b12540f33e2bcd6117479ee57ec5673a0e52 (patch) | |
tree | 5f1b1e7c8ef20890e7c521468edd914b4f07ca61 /src/filters/renderer/VideoRenderers | |
parent | befc36b299d493e6fc0bf3c6ebc20eb348964e5b (diff) |
Fix : Clean DXVA status before media open;
Change : Improve MPEG/TS debug(comment some ASSERT());
Change : Source cleanup - delete unused code;
git-svn-id: https://mpc-hc.svn.sourceforge.net/svnroot/mpc-hc/trunk@3815 10f7b99b-c216-0410-bff0-8a66a9350fd8
Diffstat (limited to 'src/filters/renderer/VideoRenderers')
-rw-r--r-- | src/filters/renderer/VideoRenderers/IPinHook.cpp | 6 | ||||
-rw-r--r-- | src/filters/renderer/VideoRenderers/IPinHook.h | 1 |
2 files changed, 7 insertions, 0 deletions
diff --git a/src/filters/renderer/VideoRenderers/IPinHook.cpp b/src/filters/renderer/VideoRenderers/IPinHook.cpp index 42531bb1d..a1810457b 100644 --- a/src/filters/renderer/VideoRenderers/IPinHook.cpp +++ b/src/filters/renderer/VideoRenderers/IPinHook.cpp @@ -160,6 +160,12 @@ LPCTSTR GetDXVAVersion() return DXVAVersion[g_nDXVAVersion];
}
+void ClearDXVAState()
+{
+ g_guidDXVADecoder = GUID_NULL;
+ g_nDXVAVersion = 0;
+}
+
LPCTSTR FindD3DFormat(const D3DFORMAT Format)
{
for (int i=0; i<countof(D3DFormatType); i++) {
diff --git a/src/filters/renderer/VideoRenderers/IPinHook.h b/src/filters/renderer/VideoRenderers/IPinHook.h index 406a4efcb..cdaad19d5 100644 --- a/src/filters/renderer/VideoRenderers/IPinHook.h +++ b/src/filters/renderer/VideoRenderers/IPinHook.h @@ -180,3 +180,4 @@ extern void HookAMVideoAccelerator(IAMVideoAcceleratorC* pAMVideoAcceleratorC); extern void HookDirectXVideoDecoderService(void* pIDirectXVideoDecoderService);
LPCTSTR GetDXVADecoderDescription();
LPCTSTR GetDXVAVersion();
+void ClearDXVAState();
\ No newline at end of file |