Maarten Lankhorst : quartz: Reject samples in video renderer when stopped.
Alexandre Julliard
julliard at winehq.org
Thu Apr 17 07:38:34 CDT 2008
Module: wine
Branch: master
Commit: 3dc8384aa9e7525877c68d742ecddb8169a20779
URL: http://source.winehq.org/git/wine.git/?a=commit;h=3dc8384aa9e7525877c68d742ecddb8169a20779
Author: Maarten Lankhorst <m.b.lankhorst at gmail.com>
Date: Wed Apr 16 14:24:34 2008 -0700
quartz: Reject samples in video renderer when stopped.
When stopped video renderer no longer updates, so don't even try.
---
dlls/quartz/videorenderer.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/dlls/quartz/videorenderer.c b/dlls/quartz/videorenderer.c
index f0a73d7..4c06c44 100644
--- a/dlls/quartz/videorenderer.c
+++ b/dlls/quartz/videorenderer.c
@@ -357,8 +357,11 @@ static HRESULT VideoRenderer_Sample(LPVOID iface, IMediaSample * pSample)
REFERENCE_TIME tStart, tStop;
HRESULT hr;
+ if (This->state == State_Stopped)
+ return S_FALSE;
+
TRACE("%p %p\n", iface, pSample);
-
+
hr = IMediaSample_GetPointer(pSample, &pbSrcStream);
if (FAILED(hr))
{
More information about the wine-cvs
mailing list