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:
authorXhmikosR <xhmikosr@users.sourceforge.net>2013-01-17 19:58:31 +0400
committerXhmikosR <xhmikosr@users.sourceforge.net>2013-01-17 20:36:53 +0400
commit0b48da60c5a254e60cb444ae622744314172d8b2 (patch)
tree155954872cbefde89b64416b59c0641b2f06c600 /src/DSUtil/NullRenderers.cpp
parenta78c99b566d79bcc0927bf5e78e2ff030d9cff07 (diff)
check return value
Diffstat (limited to 'src/DSUtil/NullRenderers.cpp')
-rw-r--r--src/DSUtil/NullRenderers.cpp5
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