diff options
author | Kacper Michajłow <kasper93@gmail.com> | 2015-09-25 21:13:20 +0300 |
---|---|---|
committer | Kacper Michajłow <kasper93@gmail.com> | 2015-09-25 22:35:46 +0300 |
commit | 15f765da23f0df7cdeca8dfd4851812e9cc7b065 (patch) | |
tree | e63000c7361d74423df7718ed03ddd150d017967 /src | |
parent | 2853f697fdb86487c93da640d252e2320a394734 (diff) |
CmadVRAllocatorPresenter: Implement IsRendering method.
Diffstat (limited to 'src')
-rw-r--r-- | src/filters/renderer/VideoRenderers/madVRAllocatorPresenter.cpp | 1 | ||||
-rw-r--r-- | src/filters/renderer/VideoRenderers/madVRAllocatorPresenter.h | 7 |
2 files changed, 7 insertions, 1 deletions
diff --git a/src/filters/renderer/VideoRenderers/madVRAllocatorPresenter.cpp b/src/filters/renderer/VideoRenderers/madVRAllocatorPresenter.cpp index 629d7f05f..e9eba490e 100644 --- a/src/filters/renderer/VideoRenderers/madVRAllocatorPresenter.cpp +++ b/src/filters/renderer/VideoRenderers/madVRAllocatorPresenter.cpp @@ -172,6 +172,7 @@ STDMETHODIMP CmadVRAllocatorPresenter::CreateRenderer(IUnknown** ppRenderer) m_pBV2 = m_pDXR;
m_pMVRC = m_pDXR;
m_pMVREPS = m_pDXR;
+ m_pMVRI = m_pDXR;
m_pVW = m_pDXR;
return S_OK;
diff --git a/src/filters/renderer/VideoRenderers/madVRAllocatorPresenter.h b/src/filters/renderer/VideoRenderers/madVRAllocatorPresenter.h index 2639008e0..c02cb61cb 100644 --- a/src/filters/renderer/VideoRenderers/madVRAllocatorPresenter.h +++ b/src/filters/renderer/VideoRenderers/madVRAllocatorPresenter.h @@ -78,6 +78,7 @@ namespace DSObjects CComQIPtr<IBasicVideo> m_pBV;
CComQIPtr<IMadVRCommand> m_pMVRC;
CComQIPtr<IMadVRExternalPixelShaders> m_pMVREPS;
+ CComQIPtr<IMadVRInfo> m_pMVRI;
CComQIPtr<IVideoWindow> m_pVW;
CSize m_ScreenSize;
@@ -106,7 +107,11 @@ namespace DSObjects // ISubPicAllocatorPresenter2
STDMETHODIMP_(bool) IsRendering() {
- return false; // For testing
+ int playbackState;
+ if (SUCCEEDED(m_pMVRI->GetInt("playbackState", &playbackState))) {
+ return playbackState == State_Running;
+ }
+ return false;
}
};
}
|