diff options
author | Kacper Michajłow <kasper93@gmail.com> | 2015-10-24 14:39:38 +0300 |
---|---|---|
committer | Kacper Michajłow <kasper93@gmail.com> | 2015-11-07 23:43:36 +0300 |
commit | 104c2ad1571e82c6bc5b1755d51cd04b7526eaf8 (patch) | |
tree | 8110c1a666e1b5f1e2cd11e7b68d0700a7087826 /src | |
parent | 00c1c554c4edea9716b68206439f1ba0e72e3bbc (diff) |
CmadVRAllocatorPresenter: Check pointer where it make sense.
Diffstat (limited to 'src')
-rw-r--r-- | src/filters/renderer/VideoRenderers/madVRAllocatorPresenter.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/filters/renderer/VideoRenderers/madVRAllocatorPresenter.cpp b/src/filters/renderer/VideoRenderers/madVRAllocatorPresenter.cpp index 5d707f5e9..04eef572b 100644 --- a/src/filters/renderer/VideoRenderers/madVRAllocatorPresenter.cpp +++ b/src/filters/renderer/VideoRenderers/madVRAllocatorPresenter.cpp @@ -116,11 +116,13 @@ HRESULT CmadVRAllocatorPresenter::RenderEx2(REFERENCE_TIME rtStart, RECT viewportRect,
const double videoStretchFactor)
{
+ CheckPointer(m_pSubPicQueue, E_UNEXPECTED);
+
__super::SetPosition(viewportRect, croppedVideoRect);
if (!g_bExternalSubtitleTime) {
SetTime(rtStart);
}
- if (atpf > 0 && m_pSubPicQueue) {
+ if (atpf > 0) {
m_fps = 10000000.0 / atpf;
m_pSubPicQueue->SetFPS(m_fps);
}
|