Christian Costa : quartz: Return properly when input is flushing or reaching end of stream.
Alexandre Julliard
julliard at winehq.org
Wed Dec 3 05:56:28 CST 2008
Module: wine
Branch: master
Commit: 50fda76b405828e0c8ddd4e9ba52aea3b19e3f4f
URL: http://source.winehq.org/git/wine.git/?a=commit;h=50fda76b405828e0c8ddd4e9ba52aea3b19e3f4f
Author: Christian Costa <titan.costa at wanadoo.fr>
Date: Tue Dec 2 20:29:48 2008 +0100
quartz: Return properly when input is flushing or reaching end of stream.
---
dlls/quartz/videorenderer.c | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/dlls/quartz/videorenderer.c b/dlls/quartz/videorenderer.c
index acd0ba2..437779c 100644
--- a/dlls/quartz/videorenderer.c
+++ b/dlls/quartz/videorenderer.c
@@ -355,9 +355,14 @@ static HRESULT VideoRenderer_Sample(LPVOID iface, IMediaSample * pSample)
long cbSrcStream = 0;
REFERENCE_TIME tStart, tStop;
HRESULT hr;
+
EnterCriticalSection(&This->csFilter);
+
if (This->pInputPin->flushing || This->pInputPin->end_of_stream)
- hr = S_FALSE;
+ {
+ LeaveCriticalSection(&This->csFilter);
+ return S_FALSE;
+ }
if (This->state == State_Stopped)
{
More information about the wine-cvs
mailing list