diff options
author | XhmikosR <xhmikosr@users.sourceforge.net> | 2013-01-17 19:58:31 +0400 |
---|---|---|
committer | XhmikosR <xhmikosr@users.sourceforge.net> | 2013-01-17 20:36:53 +0400 |
commit | 0b48da60c5a254e60cb444ae622744314172d8b2 (patch) | |
tree | 155954872cbefde89b64416b59c0641b2f06c600 /src/DSUtil/NullRenderers.cpp | |
parent | a78c99b566d79bcc0927bf5e78e2ff030d9cff07 (diff) |
check return value
Diffstat (limited to 'src/DSUtil/NullRenderers.cpp')
-rw-r--r-- | src/DSUtil/NullRenderers.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/DSUtil/NullRenderers.cpp b/src/DSUtil/NullRenderers.cpp index e95da8c15..721c5f0b3 100644 --- a/src/DSUtil/NullRenderers.cpp +++ b/src/DSUtil/NullRenderers.cpp @@ -308,8 +308,9 @@ HRESULT CNullUVideoRenderer::DoRenderSample(IMediaSample* pSample) CComQIPtr<IMFGetService> pService = pSample;
if (pService != NULL) {
CComPtr<IDirect3DSurface9> pSurface;
- pService->GetService(MR_BUFFER_SERVICE, __uuidof(IDirect3DSurface9), (void**)&pSurface);
- // TODO : render surface...
+ if (SUCCEEDED(pService->GetService(MR_BUFFER_SERVICE, __uuidof(IDirect3DSurface9), (void**)&pSurface))) {
+ // TODO : render surface...
+ }
}
#endif
|