quartz: Return properly when input is flushing or reaching end of stream.
This commit is contained in:
parent
5284fce1ac
commit
50fda76b40
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue