quartz: Return properly when input is flushing or reaching end of stream.

This commit is contained in:
Christian Costa 2008-12-02 20:29:48 +01:00 committed by Alexandre Julliard
parent 5284fce1ac
commit 50fda76b40
1 changed files with 6 additions and 1 deletions

View File

@ -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)
{