quartz: Reject samples in video renderer when stopped.

When stopped video renderer no longer updates, so don't even try.
This commit is contained in:
Maarten Lankhorst 2008-04-16 14:24:34 -07:00 committed by Alexandre Julliard
parent 382a61391f
commit 3dc8384aa9

View file

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